Warning: Ignoring the Android API artifact com.google.android:androidrige.1.1.4

Android Studio added external libraries to my project this morning. Now, building my project, I get

Warning:Ignoring Android API artifact com.google.android:android:4.1.1.4 for debug 

Does anyone know what this means?

+8
android android-studio android-gradle
source share
1 answer

Does anyone know what this means?

Some dependency of the project directly declared dependence on the version of Android.

To fix it

To find the dependent dependency, do the following, and then, ideally, inform the authors of the library about their error. You can also explicitly avoid the problem while waiting for the fix:

Run ./gradlew app:dependencies and find the line or lines that say:

 +--- com.awesome:someawesomelibrary:1.0.0.0 | +--- com.google.android:android:4.1.1.4 

If this output is too long to find, remember that you can pass it to a text file by adding > out.txt

Now find your gradle import com.awesome:someawesomelibrary:1.0.0.0 and exclude android as follows:

 compile ('com.awesome:someawesomelibrary:1.0.0.0') { exclude group: 'com.google.android', module: 'android' } 
+8
source share

All Articles