NoSuchFieldError: No field layout_top of type I in class Lcom/lt/im/R$id

SUPPORTED_64_BIT_ABIS=[Ljava.lang.String;@5e5d373
versionCode=2
BOARD=FRD
BOOTLOADER=unknown
TYPE=user
matchers=[Ljava.lang.String;@518fea9
ID=HUAWEIFRD-AL10
TIME=1515637388000
BRAND=honor
TAG=Build
HARDWARE=hi3650
SERIAL=GSLDU17A26008912
SUPPORTED_ABIS=[Ljava.lang.String;@73a4230
NO_HOTA=false
CPU_ABI=arm64-v8a
IS_DEBUGGABLE=false
RADIO=unknown
replacements=[Ljava.lang.String;@8f21c2e
MANUFACTURER=HUAWEI
IS_EMULATOR=false
SUPPORTED_32_BIT_ABIS=[Ljava.lang.String;@159a3e2
TAGS=release-keys
CPU_ABI2=
UNKNOWN=unknown
PERMISSIONS_REVIEW_REQUIRED=false
USER=test
FINGERPRINT=honor/FRD-AL10/HWFRD:7.0/HUAWEIFRD-AL10/C00B396:user/release-keys
HOST=wuhjk0381cna
versionName=1.0.2
PRODUCT=FRD-AL10
DISPLAY=FRD-AL10C00B396
HIDE_PRODUCT_INFO=false
MODEL=FRD-AL10
DEVICE=HWFRD
java.lang.NoSuchFieldError: No field layout_top of type I in class Lcom/lt/im/R$id; or its superclasses (declaration of 'com.lt.im.R$id' appears in /data/app/com.wisdomcloudsystem.resident.phone-2/split_lib_slice_8_apk.apk)
	at com.lt.im.activities.LTAvChatActivity.initView(LTAvChatActivity.java:418)
	at com.lt.im.activities.LTAvChatActivity.onCreate(LTAvChatActivity.java:253)
	at android.app.Activity.performCreate(Activity.java:6915)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
	at android.app.ActivityThread.-wrap12(ActivityThread.java)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
	at android.os.Handler.dispatchMessage(Handler.java:105)
	at android.os.Looper.loop(Looper.java:156)
	at android.app.ActivityThread.main(ActivityThread.java:6523)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)

我在项目中添加了一个Library,运行之后出现这种异常,通过findViewById查找的控件全部返回空,最后通过这篇文章:https://blog.csdn.net/u011163115/article/details/52333835找到灵感,我的app module中和library中存在相同的xml布局文件,删除不需要的就行了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值