我用apktool解码了一个apk文件,我没有改变任何东西.之后,我只是再次构建它,然后我尝试安装apk,但即使经过一些基本的更改,我也得到了以下错误.
我使用windows cmd做了什么:
apktool d somename.apk -o testfolder
然后
apktool b testfolder
和:
adb install somename.apk pkg: /data/local/tmp/somename.apk Failure [INSTALL_PARSE_Failed_UNEXPECTED_EXCEPTION] rm Failed for -f,No such file or directory
我用apkstudio做到了,结果是一样的.
$adb install -r "somename.apk" pkg: /data/local/tmp/somename.apk Failure [INSTALL_PARSE_Failed_UNEXPECTED_EXCEPTION] rm Failed for -f,No such file or directory Process exited with code 0
Was it a system app? No.
有人可以帮我吗?
解决方法
重新编译后需要签署非系统apks.
尝试签署你的apk: Signing Your App Manually
尝试签署你的apk: Signing Your App Manually