0
我正在嘗試使用proguard簽名的APK。這是工作完美地添加依賴於的InMobiAndroid:InMobi新版本6.0.3的Proguard問題
之前我得到的警告作爲
You may need to add missing library jars or update their versions.
Warning:there were 2 unresolved references to classes or interfaces.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
沒有正在使用的依賴作爲 「編譯「com.inmobi.monetization:的InMobi的廣告:6.0.3 '「。在使用Inmobi的jar文件之前。
當我使用InMobi早期版本5.0.4時,那是jar文件,那時候proguard沒有問題。使用的InMobi新版本,在該網站給出的
-keepattributes SourceFile,LineNumberTable
-keep class com.inmobi.** { *; }
-keep public class com.google.android.gms.**
-dontwarn com.google.android.gms.**
-dontwarn com.squareup.picasso.**
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient{
public *;
}
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info{
public *;
}
-keep class com.moat.** {*;}
-dontwarn com.moat.**<br>
不過我得到的問題
它說哪些是2個未解決的參考?嘗試使用更詳細的日誌記錄來運行gradle任務,如果它沒有超過Android Studio中的說明並給我們一個更新。 – anthonymonori