问题
I'm currently using Proguard in my app, and the Audience Network is not working. I need some different configuration, rather than the usual:
-keep class com.facebook.** { *; }
The problem is the integration guide doesn't refer any kind of Proguard configuration. Does someone already faced this problem and figured out what is missing?
回答1:
I need some different configuration, rather than the usual:
-keep class com.facebook.** { *; }
You need to use
-keep class com.facebook.ads.** { *; }
proguard configuration to show Facebook Audience Network.Because inAudienceNetwork.jar
the main package is com.facebook.ads
回答2:
-keep class com.facebook.ads.** { *; }
-dontwarn com.facebook.ads.**
回答3:
simply use
-keep class com.facebook.ads.** { *; }
回答4:
Please write these line in proguard-rules.pro
file
-keep class com.facebook.ads.**{*;
}
-keep class com.facebook.** {
*;
}
-dontwarn
-ignorewarnings
来源:https://stackoverflow.com/questions/24967560/facebook-audience-network-proguard-settings