有誰知道需要添加到Proguard谷歌分析的保留聲明?Proguard谷歌分析
我這一行,但現在由於某些原因沒有被報道......
# google analytics, uncomment if using:
-keep class com.google.android.apps.analytics.PipelinedRequester$Callbacks
有誰知道需要添加到Proguard谷歌分析的保留聲明?Proguard谷歌分析
我這一行,但現在由於某些原因沒有被報道......
# google analytics, uncomment if using:
-keep class com.google.android.apps.analytics.PipelinedRequester$Callbacks
我有一個通用的
-keep public class com.google.** {*;}
在我proguard.cfg和谷歌Analytics(分析)正常工作。
試試這個。如果這不能解決問題,那麼您的問題不是Proguard,而是Google Analytics配置或連接問題。
您可以在aar
包官方proguard的規則文件,定位在:
Android的SDK-WINDOWS \演員\谷歌\ m2repository \ COM \谷歌\機器人\ GMS \播放服務,分析\ XXX \發揮服務 - 分析 - xxxaar
proguard.txt:
-keep class * extends java.util.ListResourceBundle {
protected java.lang.Object[][] getContents();
}
# Keep SafeParcelable value, needed for reflection. This is required to support backwards
# compatibility of some classes.
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
# Keep the names of classes/members we need for client functionality.
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}
# Needed for Parcelable/SafeParcelable Creators to not get stripped
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
# Needed when building against the Marshmallow SDK
-dontwarn org.apache.http.**
# Needed when building against pre-Marshmallow SDK.
-dontwarn android.security.NetworkSecurityPolicy
你可以看到部分在這個頁面瞭解更多細節創建ProGuard的異常:https://developers.google.com/android/guides/setup