我一直在尝试正确导入此库以开始为我的应用程序编写图像编辑组件。我目前在根目录中有下载的“creativesdk-repo”文件夹,并按照本教程的说明进行操作: https ://creativesdk.adobe.com/docs/android/#/articles/gettingstarted/index.html 。
还有本教程: https ://creativesdk.adobe.com/docs/android/#/articles/imageediting/index.html
当我简单地使用基本授权库时,构建没有问题,但我的应用程序需要照片编辑能力。我的首要问题(在众多问题中)在于应用程序的 build.gradle 文件(而不是包含项目的 build.gradle 文件)。
这是我的 build.gradle 文件中的代码:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
applicationId "com.example"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.adobe.creativesdk.foundation:auth:0.3.94'
compile 'com.adobe.creativesdk.image:4.0.0'
}
最后一行导致出现错误消息:
错误:无法解决:com.adobe.creativesdk.image:4.0.0:打开文件
我相信这些消息意味着 Adobe Creative SDK 库的图像编辑部分未被识别。我什至用 Adobe 的示例项目对此进行了测试,它遇到了同样的问题。我可以做些什么来解决这个问题并开始编写我的应用程序的这一部分?