Android Studio Error when adding Adobe Creative SDK

爷,独闯天下 提交于 2019-12-02 09:50:52

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:

url "${project.rootDir}/creativesdk-repo"

(or whatever the name of the folder is)

Sync the build.gradle file and it works.

Don't forget to add this..

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

Put downloaded sdk into root directory and add

maven {
         url "${project.rootDir}/creativesdk-repo"//your sdk name as it is
      } 

in Application's build.grade file under the "allprojects/repositories" section: as follow

allprojects {
    repositories {
        mavenCentral()
        jcenter()

        maven {
            url "${project.rootDir}/creativesdk-repo" 
        }
    }
}

make sure to add the packaging options to the Application's build.grade file under the "android" section:

packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/LICENSE'
    }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!