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布局文件,删除不需要的就行了