最近混淆应用时出现了一个错误:
打包编译没问题,但程序运行之后,点击友盟的反馈就会导致程序报错:
E/AndroidRuntime(7669):
java.lang.RuntimeException:
Unable to start activity ComponentInfo{packagename/com.umeng.fb.ConversationActivity}:
java.lang.IllegalArgumentException:
ResClass is not initialized. Please make sure you have added necessary resources.
Also make sure you have packagename.R$* configured in obfuscation.
field=umeng_fb_activity_conversation
在网上找了几天都没解决,今天突然就发现了问题:
原来我的包名改过,在添加下面的配置时包名忘了改,就导致了上面的错误,如果有同样错误的可以试一试
-keep public class 你的包名.R$*{
public static final int *;
}