apktool 解包和打包问题

用Android Studio 2.2 开发程序,目标SDK为25,然后用apktool 2.0.1解包,再打包上发现出错,提示各种 


 error: Error: No resource found that matches the given name:

还有类似这种错误:Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.DarkActionBar'.


后来估计是API版本的问题,换用了2.2.1的apktool,发现没有上述错误,但是出现了下面的错误

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException:


后来发现是框架apk不符合的原因,删除了C:\\users\apktool\1.apk,再解包时系统会使用新版的框架应用


但是最后还有个问题,打包上的应用结构上会有问题,而且apktool 2.2.1解包时会出现unknown 文件夹,再修改dex时会出现application找不到的情况

猜你喜欢

转载自blog.csdn.net/csd_meb/article/details/73107964