Adobe Creative SDK集成Android错误

时间:2015-04-18 04:13:22

标签: android sdk adobe

按照给定的文档:https://creativesdk.adobe.com/docs/android/#/articles/imageediting/index.html 我继续我的项目设置但是当我继续编辑我的应用程序的build.gradle文件并添加编译项目(':creativesdk:CreativeSDKImage')依赖项并重建时,构建失败显示错误:配置名称'默认'没找到。

这是我的settings.gradle文件 -

include ':app'
include ':creativesdk'
include ':creativesdk:CreativeSDKImage'
include ':creativesdk:Foundation:CreativeSDKFoundationAuth'
project(':creativesdk').projectDir = new File
     ("C:\\Users\\Neel Raj\\Desktop\\AdobeTest\\creativesdk-repo\\com\\adobe/creativesdk")
project(':creativesdk:CreativeSDKImage').projectDir = new File
    ("C:\\Users\\Neel Raj\\Desktop\\AdobeTest\\creativesdk-repo\\com\\adobe/creativesdk/CreativeSDKImage")
project(':creativesdk:Foundation:CreativeSDKFoundationAuth').projectDir = new File
    ("C:\\Users\\Neel Raj\\Desktop\\AdobeTest\\creativesdk-repo\\com\\adobe/creativesdk/Foundation/CreativeSDKFoundationAuth")

build.gradle文件 -

apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.1"

defaultConfig {
    applicationId "com.neelraj.adobetest"
    minSdkVersion 14
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

packagingOptions {
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/NOTICE.txt'
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.2'
compile project(':creativesdk:CreativeSDKImage')
}

我无法找到解决这个问题的方法。我甚至不确定我是否正确地做了一切。但我一步一步地遵循了文档。

设置图像sdk的任何详细方法都非常有用

1 个答案:

答案 0 :(得分:0)

我在本指南中遇到了同样的问题。 请看这里:Trying to make an Android Studio Application with Adobe Creative SDK Image Editing, cannot get libraries compiled in gradle 按照步骤配置SDK。

之后,您可以按照上述教程的其余部分进行操作。 帮助我的是查看Android Creative SDK“CreativeSDKImageSampleApp”中的示例代码,几个小时后它对我有用