离子cordova在构建中构建android错误

时间:2018-03-22 13:49:08

标签: angular ionic-framework ionic2 ionic3

昨天我的应用程序构建成功,但是今天当我使用firebase的应用程序时,有一些下载gradle(ppa)它会给我以下错误:

操作系统: IOS

BUILD FAILED

    Total time: 11.315 secs

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':processDebugResources'.
    > Error: more than one library with package name 'com.google.android.gms.license'

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: /Applications/MAMP/htdocs/hardik/projects/firebaseChat/platforms/android/gradlew: Command failed with exit code 1 Error output:
    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':processDebugResources'.
    > Error: more than one library with package name 'com.google.android.gms.license'

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    [ERROR] An error occurred while running cordova build android (exit code 1).

1 个答案:

答案 0 :(得分:0)

platform / android / project.properties 文件中更改+到11 +

例如:

dependencies {
compile 'com.google.firebase:firebase-crash:+'
}

dependencies {
compile 'com.google.firebase:firebase-crash:11.+'
}

资源:

1。)Firebase: Android build error with Error: more than one library with package name ‘com.google.android.gms.license’

2。)More than one library with package name 'com.google.android.gms.license'

3。)ionic3: more than one library with package name 'com.google.android.gms.license'