NoSuchFieldError: No static field btn_press3 of type I in class Lcom/hyphenate/helpdesk/R$id; or its
2017-05-05 19:05
861 查看
Android多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文件。
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文件。
相关文章推荐
- java.lang.NoSuchFieldError: No static field ib_back of type I in class Lcom/example/demo/R$id; or
- Android java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or its superclasses
- java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or its superclasses
- java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or its superclasses
- 二、Java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or
- java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or its superclasses
- java.lang.NoSuchFieldError: No static field txt_content of type I in class Lcom/test/
- java.lang.NoSuchFieldError: no "I" field XXXXin class "Lxx/xx/xx/xx;" or its superclasses
- 解决--No instance field forceOldAnimationCode of type Z in class ImageDecodeOptions
- No static field ll_time of type I in class L使用第三方类库R文件不编译
- hive Exception in thread "main" java.lang.NoSuchFieldError: type
- java.lang.NoSuchFieldError: No field title of type
- java.lang.NoSuchFieldError: No field title of type I
- Exception in thread "main" java.lang.NoSuchFieldError: level
- elasticsearch 报出 Exception in thread "main" java.lang.NoSuchFieldError: LUCENE_3_6
- android模拟器 一个错误:X Error of failed request: BadRequest (invalid request code or no such operation)
- android java.lang.NoSuchFieldError: R$id.xxx
- Pymongo: TypeError: if no direction is specified, key_or_list must be an instance of list
- Exception in thread "main" java.lang.NoSuchFieldError的 一种解决办法
- FATAL EXCEPTION: main 2. java.lang.NoSuchFieldError: R$id.r1