作者:我就是我 | 来源:互联网 | 2023-05-24 07:22
这是我的build.gradle文件.我已经按照本教程.
repositories {
mavenCentral()
jcenter()
mavenLocal()
maven {
url "${project.rootDir}/mvn-repo/release" //ADD THE CORRECT LOCATION OF THE CREATIVESDK LIBRARY FILES
}
}
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
packagingOptions {
exclude 'META- INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
}
defaultConfig {
applicationId "com.example.test"
minSdkVersion 11
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':libraries:collage-views')
compile 'com.aviary.android.feather.sdk:aviary-sdk:3.6.5'
compile 'com.adobe.creativesdk:behance:0.2.10'
compile 'com.adobe.creativesdk:image:4.0.0'
// Support libraries
compile 'com.android.support:support-v4:21.0.3'
}
我收到了这个错误
错误:无法找到:com.adobe.creativesdk:behance:0.2.10
在"项目结构"对话框中打开"打开文件"
错误:无法找到:com.aviary.android.feather.sdk:aviary-sdk:3.6.5
在"项目结构"对话框中打开"打开文件"
错误:无法找到:com.adobe.creativesdk:image:4.0.0打开文件
在"项目结构"对话框中打开
我是否需要提供${project.rootDir}/mvn-repo/release
或需要下载sdk的路径并手动将其添加到某处?我是android studio的新手,所以我对它不太了解.
1> SkyWalker..:
我已经下载了Adobe Creative SDK并将其放在工作区的项目文件夹中.文件夹名称为"creativesdk-repo".将build.gradle文件中的URL更改为:
url"$ {project.rootDir}/creativesdk-repo"
(或者文件夹的名称是什么)
同步build.gradle文件,它的工作原理.
别忘了添加这个..
android {
....
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
}
....
}