问题描述
这是我的 build.gradle 文件。我按照本的教程。
This is my build.gradle file.I have followed this tutorial.
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'
}
我收到此错误
I am getting this error
错误:无法找到:com.adobe.creativesdk:behance:0.2.10 打开文件
打开的项目结构对话框
错误:无法找到:com.aviary.android.feather.sdk:舍-SDK:3.6.5 打开文件
打开的项目结构对话框
Error:Failed to find: com.aviary.android.feather.sdk:aviary-sdk:3.6.5 Open File
Open in Project Structure dialog
错误:无法找到:com.adobe.creativesdk:图片:4.0.0 打开文件
打开的项目结构对话框
Error:Failed to find: com.adobe.creativesdk:image:4.0.0 Open File
Open in Project Structure dialog
我是否需要给 $ {project.rootDir} / MVN回购/释放路径
或需要下载的SDK和地方手动添加呢?我是新来的android的工作室,所以我也不是很了解。
Do I need to give path of ${project.rootDir}/mvn-repo/release
or need to download the sdk and add it somewhere manually?I'm new to android studio, so I don't know much about it.
推荐答案
我已经下载的Adobe Creative SDK 一>,并把它放在项目文件夹内的工作空间。文件夹名称是creativesdk回购。在更改网址 build.gradle 文件,以这样的:
I have downloaded Adobe Creative SDK and put it inside the project folder in workspace. The folder name is "creativesdk-repo".Changed the URL in build.gradle file to this:
网址$ {project.rootDir} / creativesdk回购
(或任何文件夹的名称是)
(or whatever the name of the folder is)
同步在 build.gradle 文件和它的作品。
Sync the build.gradle file and it works.
不要忘了添加该..
android {
....
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
}
....
}
这篇关于增加的Adobe Creative SDK时,机器人工作室错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!