New warning when building android app with gradle

前端 未结 2 880
慢半拍i
慢半拍i 2020-12-23 21:02

Yesterday it was fine, today it shows this warning when I clean or build the project:

WARNING: Ignoring Android API artifact com.google.android:andr

相关标签:
2条回答
  • 2020-12-23 21:27

    I solved the problem by updating my version of gradle.

    build.gradle (Project)

    classpath 'com.android.tools.build:gradle:+'
    
    0 讨论(0)
  • 2020-12-23 21:33

    Usually, java libraries depends on com.google.android:android if this library will be used in Android project.

    Then you can exclude this module from dependencies of target Android project. Like this:

    compile ('some.library.that.depends.on.android') {
        exclude group: 'com.google.android'
    }
    
    0 讨论(0)
提交回复
热议问题