【问题标题】:ionic cordova build android error in build离子科尔多瓦在构建中构建android错误
【发布时间】:2018-03-22 13:49:07
【问题描述】:

昨天我的应用程序构建成功,但是今天当我构建我的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).

【问题讨论】:

    标签: angular ionic-framework ionic2 ionic3


    【解决方案1】:

    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'

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-31
      相关资源
      最近更新 更多