I'm attempting to compile my application using Proguard and Eclipse and I'm getting the following errors:
Warning: com.adsdk.sdk.mraid.AdView: can't find referenced method 'void setPluginsEnabled(boolean)' in class android.webkit.WebSettings
Warning: com.adsdk.sdk.video.WebFrame: can't find referenced method 'void setPluginsEnabled(boolean)' in class android.webkit.WebSettings
It seems that these classes were depreciated in 4.3 and a similar post in another random forum suggests that the solution is to change the target back to 17 and compile against 4.2.
Surely this isn't the only solution....?
I've tried adding the relevant removal of warnings code and keep class members etc to the Proguard config file, but to no avail.
Any ideas?
EDIT: I don't use these classes directly in my code - They are referenced from the Admob SDK Jar
It turned out to be a pretty simple fix for me. You need to add the following into your Proguard config file:
-dontwarn android.webkit.**
I had previously included:
-dontwarn android.webkit.WebSettings.**
But that was wrong due to it being a Method, rather than a Class I believe.
Hope this helps someone who may be stuck like I was.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With