2016-09-22 57 views
2

。在此之後,我也曾有過一些警告在我的項目:更新至Android Studio 2.2後Gradle中出現有關工件的警告前幾天,我已更新至Android Studio 2.2中的

Warning:Ignoring Android API artifact com.google.android:android:1.6_r2 for debug 
Warning:Ignoring Android API artifact com.google.android:android:1.6_r2 for release 

任何人都知道它的原因是什麼?

+2

類似的錯誤在這裏https://code.google.com/p/android/issues/detail報道?id = 222538 –

+0

重複:http://stackoverflow.com/questions/37324917/new-warning-when-building-android-app-with-gradle – xsveda

+0

它是同樣的錯誤,@xsveda? –

回答

0

最後,我發現問題所在。這是由AndroidVideoCache庫引起的。爲了解決這個問題,只需更換這(在我的具體情況):

compile 'com.danikula:videocache:2.6.3' 

通過

compile('com.danikula:videocache:2.6.3') { 
    exclude group: 'com.google.android', module: 'android' 
} 
相關問題