alibaba / freeline

A super fast build tool for Android, an alternative to Instant Run
https://www.freelinebuild.com/
BSD 3-Clause "New" or "Revised" License
5.48k stars 623 forks source link

增量编译后,findViewById()得到的View为null #924

Open shyshywhy opened 6 years ago

shyshywhy commented 6 years ago

增量编译后,findViewById()得到的View为null,但是我去build/freeline/XXX/XXX/R.java下面又能找到这个id

shyshywhy commented 6 years ago

build/freeline/XXX/XXX/R.java下面的int content_stub=0x7f10072e,但是build/generated/source/r/dev/debug/xxx/xxx/R.java 下面public static final int content_stub=0x7f10073a,两个是不一致的

shyshywhy commented 6 years ago

有好几个View都有这种问题,统一特征都是在多个模块中有相同名字的id

shyshywhy commented 6 years ago

@lomanyong @alibaba-oss