这个问题可能是由于您的构建工具版本与设备上的aapt版本不兼容导致的。您可以检查并更新构建工具版本,以确保其与设备上的aapt版本兼容。
例如,如果您使用的是Gradle构建工具,请将以下代码添加到您的build.gradle文件中,并将版本号更改为与您设备上的aapt版本相对应的版本号:
android { buildToolsVersion "版本号" }
如果这不起作用,您可以尝试手动重新安装aapt,如下所示:
adb shell su -c "mount -o remount,rw /system" adb push aapt /system/bin/aapt adb shell chmod 755 /system/bin/aapt adb shell mount -o remount,ro /system
请确保您的设备具有root权限,并且您已经使用了正确版本的aapt。
下一篇:APK写入的推荐位置是什么?