NoSuchFieldError: No static fiel

2017-05-23  本文已影响0人  wslerz

多Module模式findViewById报错:
Caused by: Java.lang.NoSuchFieldError: No static field btn_press3 of type I in class Lcom/hyphenate/helpdesk/R$id; or its superclasses (declaration of 'com.hyphenate.helpdesk.R$id' appears in /data/app/com.mingteng.sizu.xianglekang-1/base.apk:classes102.dex)
产生原因:不同Module下具有相同的layout文件名。
解决办法:重命名layout文件。

http://blog.csdn.net/m7016/article/details/71228430

上一篇 下一篇

猜你喜欢

热点阅读