Android项目中的java Creative SDK图像编辑器UI
您好,我正在尝试将CreativeSDK集成到我的安卓应用程序中,我遵循了这个click here
我的身材。格雷德尔(项目)是
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.安卓.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
/* 1) Add the Gradle Retrolambda Plugin */
classpath 'me.tatarka:gradle-retrolambda:3.3.0-beta4'
}
}
allprojects {
repositories {
jcenter()
/* 2) Add mavenCentral */
mavenCentral()
/* 3) Add the Creative SDK Maven repo URL */
maven {
url 'https://repo.adobe.com/nexus/content/repositories/releases/'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
建造。gradle(应用程序级)
apply plugin: 'com.安卓.application'
apply plugin: 'me.tatarka.retrolambda'
安卓 {
compileSdkVersion 24
buildToolsVersion "24.0.3"
defaultConfig {
applicationId "tricurve.com.imgdemoapp"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "安卓.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-安卓.txt'), 'proguard-rules.pro'
}
dexOptions {
jumboMode true
}
}
/* 2) Compile for Java 1.8 or greater */
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
/* 3) Exclude duplicate licenses */
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
pickFirst 'AndroidManifest.xml'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
安卓TestCompile('com.安卓.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.安卓.support', module: 'support-annotations'
})
compile 'com.安卓.support:appcompat-v7:24.2.1'
compile 'com.安卓.support:design:24.2.1'
testCompile 'junit:junit:4.12'
/* 4) Add the CSDK framework dependencies (Make sure these version numbers are correct) */
compile 'com.adobe.creativesdk.foundation:auth:0.9.1186'
}
到目前为止,这还不错,但当我尝试添加图像编辑器UIclick here
gradle生成获取错误 请有人帮我,他们提供了2个不同的maven url
maven {
url 'https://repo.adobe.com/nexus/content/repositories/releases/'
}
及
maven {
url 'http://maven.localytics.com/public'
}
如何使用这个请帮我解决这个问题
# 1 楼答案
这两个maven URL都是必需的。一个用于Creative SDK,另一个用于Localytics
在
build.gradle
(项目)文件中,allprojects
块如下所示:有关完整的示例,请参见Creative SDK android-getting-started-samples repo的
image-editor-ui
目录可以在here和here找到Gradle文件和示例