Yesterday it was fine, today it shows this warning when I clean or build the project:
WARNING: Ignoring Android API artifact
com.google.android:android:2.1_r1 for appDebug WARNING: Ignoring Android
API artifact com.google.android:android:2.1_r1 for appRelease
I think it was caused by an update of the gradle plugin for android.
Anyone knows what it means ?
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'
}
Answer:
I solved the problem by updating my version of gradle.
build.gradle (Project)
classpath 'com.android.tools.build:gradle:+'
Tags: androidandroid