Facebook Audience Network Proguard settings

爷,独闯天下 提交于 2019-12-23 07:40:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!