安卓 - 使用 apktool 编辑后运行 APK 文件得到错误:[INSTALL_PARSE_FAILED_NO_CERTIFICATES]

问题描述:

我有一个 APK 文件名:Splash.apk.首先我使用 apktool 解码它

I have an APK file name : Splash.apk. First i decode it using apktool

apk d Splash.apk

然后我编辑清单,XML.最后我将项目导出为 APK 文件名:EditedSpash.apk.

Then i edit Manifest, XML. Finally I export project to APK file name : EditedSpash.apk.

apk b Splash

当我在模拟器上运行 EditedSpash.apk 时.我有错误.你给我解释一下吗?

When i run EditedSpash.apk on emulator. I got error. Do you explain it for me ?

adb install EditedSplash.apk

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

你应该在安装前签署 apk.

you should sign to apk before install.

1)keytool -genkey -keystore (name).keystore -validity 10000 -alias (name)

2) 回答一些问题(例如:姓名、公司...

2)answer some question (ex:name, company...

3)生成keystore文件后,将apk和ketstore结合起来

3)after make keystore file,you combine apk and ketstore

如果这些文件位于同一目录

if these file are located same directory

jarsigner -keystore(名称).keystore -verbose LunarLander.apk(名称)

apk 大小增加 2kb+;

apk size increase 2kb+;

在此之后将 apk 安装到 avd

after this install apk to avd