为什么在尝试编译以在 Android 上发布时会出现 flurry 错误?

Why do I get error on flurry when trying to compile to release on Android?

当我尝试使用 ./gradlew assembleRelease 编译发布时,出现了这些错误。我还没有签,不过根据http://developer.android.com/tools/building/building-cmdline.html,以后可以签。

Warning: com.flurry.sdk.hn: can't find referenced class com.google.android.gms.ads.identifier.AdvertisingIdClient
Warning: com.flurry.sdk.hn: can't find referenced class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
Warning: com.flurry.sdk.hn: can't find referenced class com.google.android.gms.ads.identifier.AdvertisingIdClient
Warning: com.flurry.sdk.hn: can't find referenced class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
Warning: com.flurry.sdk.hn: can't find referenced class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
Warning: com.flurry.sdk.hn: can't find referenced class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
Warning: com.flurry.sdk.hn: can't find referenced class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
Warning: com.flurry.sdk.kg: can't find referenced class com.flurry.sdk.i

来自,如果你不关心FlurryAds,你可以忽略它。

在您的 app/proguard-rules.pro 中插入这些行

-dontwarn com.google.android.gms.ads.identifier.AdvertisingIdClient**
-dontwarn com.flurry.sdk.i