安卓模块资源重复造成的崩溃问题

 java.lang.NoSuchFieldError: No static field tv_index of type I in class Lcom/xx/xxx/R$id; or its superclasses (declaration of 'com.xx.xxx.R$id' appears in /data/app/com.xx.xxx-1/base.apk:classes5.d

模块C里面有个aaa.xml 里面有个tv id是nbnj

上层有个aaa.xml,里面没有id是nbnj

实际打出的包其实只有上面的aaa.xml,最终导致findViewById(R.id.nbnj)时候会找不到,报上面的错误了

发布了442 篇原创文章 · 获赞 77 · 访问量 100万+

猜你喜欢

转载自blog.csdn.net/rnZuoZuo/article/details/85339920