简体   繁体   English

离子科尔多瓦建立android中的错误

[英]ionic cordova build android error in build

Yesterday my application build successfully, but today when i bulid my application of firebase, there was some download gradle (ppa) it will give me below error: 昨天我的应用程序构建成功,但是今天当我构建Firebase应用程序时,出现了一些下载gradle(ppa),它会给我以下错误:

OS: IOS 操作系统: 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).

In platform/android/project.properties file change + to 11+ platform / android / project.properties文件中,将+更改为11+

For example: 例如:

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

to

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

Resources: 资源:

1.) Firebase: Android build error with Error: more than one library with package name 'com.google.android.gms.license' 1.) Firebase:Android构建错误,错误:错误:多个库,包名称为“ com.google.android.gms.license”

2.) More than one library with package name 'com.google.android.gms.license' 2.) 多个库,包名称为“ com.google.android.gms.license”

3.) ionic3: more than one library with package name 'com.google.android.gms.license' 3.) ionic3:多个库,软件包名称为“ com.google.android.gms.license”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM