Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么使用打包命令 #2

Open
ajhonson opened this issue Apr 29, 2014 · 1 comment
Open

怎么使用打包命令 #2

ajhonson opened this issue Apr 29, 2014 · 1 comment

Comments

@ajhonson
Copy link

我按说明文档:set path=%cd%
echo %pa%
cd %pa%
jar -xf 123.apk
del META-INF\CERT.RSA
del META-INF\CERT.SF
copy 你的路径\libcasdkjni.so lib\armeabi-v7a\libcasdkjni.so
copy 你的路径\libidentifyapp.so lib\armeabi-v7a\libidentifyapp.so
copy 你的路径\CopyrightDeclaration.xml CopyrightDeclaration.xml
copy 你的路径\mmiap.xml mmiap.xml
copy 你的路径\VERSION VERSION
del 123.apk
jar -cf 1234.apk .
jarsigner -verbose -keystore 你的路径\你的签名文件.keystore -storepass ****-keypass 密码 -signedjar oyp-sign.apk 1234.apk android.keystore

做,做到最后一步是有错误提示:"jarsigner:找不到android.keystore的证书链,android.keystore必须引用包含私有密钥和相应的公共密钥证书链的有效賔钥库条目"

我最后一句是这样写的:“jarsigner -verbose -keystore other\temp.keystore -storepass 123456 -keypass 123456 -signedjar oyp-sign.apk 1234.apk android.keystore”
不知道是哪里写错了,

@recter
Copy link
Contributor

recter commented Apr 29, 2014

@ajhonson
jarsigner -verbose -keystore other\temp.keystore -storepass 123456 -keypass 123456 -signedjar oyp-sign.apk 1234.apk android.keystore

可能改为:
jarsigner -verbose -keystore other\temp.keystore -storepass 123456 -keypass 123456 -signedjar oyp-sign.apk 1234.apk temp.keystore

注意签名命令末尾的temp.keystore是在生成key文件的时候指定的.不一定是temp.keystore.更详细的请查看签名命令的help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants