最近接到需求要把一个Android studio的项目转到eclipse中去,当时听了觉得不难,aar解压引用嘛。但是后来遇到了好多问题,比较严重的就是:
AppCompat runtime error: "android.content.res.Resources$NotFoundException: File res/drawable/abc_vector_test.xml from drawable resource ID #0xXXXXXXX"
what?V7包有问题?
一顿百度360谷歌,Android studio解决起来很简单,配置一下就行,千辛万苦终于找到一篇跟eclipse有关的帖子VectorDrawable not work <android 21 in appcompat-v7 25.3.1,问题出奇的相似嘛,正如dandar3所说的,问题竟来源于eclipse 和 aapt 组合不支持--no-version-vectors
参数,更多信息可以阅读这里。
配置一下gradle?eclipse用起来多麻烦。。
上面这位githuber给出来解决方案https://dandar3.blogspot.com/2018/01/appcompat-runtime-error.html
1.ECLIPSE ANDMORE,解决方法
2.改变ECLIPSE ADT
参考:
https://github.com/dandar3/android-support-v7-appcompat/issues/3https://github.com/eclipse/andmore/commit/6a93942dbe148288898b7e45a8f54cb7d6dadcd0
https://github.com/dandar3/android-aapt-wrapper
https://developer.android.com/guide/topics/graphics/vector-drawable-resources#vector-drawables-backward-solution
https://android-developers.googleblog.com/2016/02/android-support-library-232.html
https://dandar3.blogspot.com/2018/01/appcompat-runtime-error.html