[英]after sign an App with cmd get error “Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES”
I created a certificate from a basic android project with the normal files after creating an hello world Androidproject with eclispe. 在使用eclispe创建一个Hello world Android项目后,我从一个具有常规文件的基本android项目创建了一个证书。 I used cmd line inputs from this website:
我使用了来自此网站的cmd行输入:
http://pavan2pyati.blogspot.in/2013/09/android-apk-generation-through-command.html?m=1 http://pavan2pyati.blogspot.in/2013/09/android-apk-generation-through-command.html?m=1
I now their are some mistakes in the code... You have to copy aapt and lib folder into platform-tools and also the dx batchfile. 我现在他们在代码中有一些错误...您必须将aapt和lib文件夹复制到平台工具以及dx批处理文件中。 Futherelse I had to delete AndroidManifest.xml in the bin folder before "Create APK file".
另外,我必须在“创建APK文件”之前删除bin文件夹中的AndroidManifest.xml。
After all the signing process I get no error. 完成所有签名过程后,我没有出现任何错误。 But when I try to use BlueStacks Emulator to start my android App I get the error: "install_parse_failed_no_certificates"
但是,当我尝试使用BlueStacks Emulator启动我的Android应用程序时,出现错误:“ install_parse_failed_no_certificates”
So I checked The file with jarsigner -verify -verbose MySecondApp.apk 所以我用jarsigner -verify -verbose MySecondApp.apk检查了文件
And get following endoutput: 并获得以下最终输出:
s 3508 Mon Jan 06 16:04:38 CET 2014 META-INF/MANIFEST.MF
3670 Mon Jan 06 16:04:40 CET 2014 META-INF/MYSECOND.SF
1443 Mon Jan 06 16:04:40 CET 2014 META-INF/MYSECOND.RSA
sm 660 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp /util/SystemUiHider$1.class
sm 307 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/util/SystemUiHider$OnVisibilityChangeListener.class
sm 2090 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/util/SystemUiHider.class
sm 1516 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/util/SystemUiHiderBase.class
sm 2066 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/util/SystemUiHiderHoneycomb$1.class
sm 2208 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/util/SystemUiHiderHoneycomb.class
sm 355 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/BuildConfig.class
sm 958 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/FullscreenActivity$1.class
sm 853 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/FullscreenActivity$2.class
sm 1991 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/FullscreenActivity$3.class
sm 1028 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/FullscreenActivity$4.class
sm 3067 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/FullscreenActivity.class
sm 457 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/R$attr.class
sm 415 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/R$color.class
sm 422 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/R$drawable.class
sm 498 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/R$id.class
sm 424 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/R$layout.class
sm 486 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/R$string.class
sm 605 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/R$style.class
sm 665 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/R$styleable.class
sm 733 Mon Jan 06 11:59:16 CET 2014 classes/com/example/mysecondapp/R.class
sm 1444 Mon Jan 06 15:56:58 CET 2014 res/layout/activity_fullscreen.xml
sm 1736 Mon Jan 06 15:56:58 CET 2014 AndroidManifest.xml
sm 564412 Mon Jan 06 15:44:50 CET 2014 classes.dex
sm 2636 Mon Jan 06 15:56:58 CET 2014 resources.arsc
sm 5964 Mon Jan 06 15:56:58 CET 2014 res/drawable-hdpi/ic_launcher.png
sm 3112 Mon Jan 06 15:56:58 CET 2014 res/drawable-mdpi/ic_launcher.png
sm 9355 Mon Jan 06 15:56:58 CET 2014 res/drawable-xhdpi/ic_launcher.png
sm 17889 Mon Jan 06 15:56:58 CET 2014 res/drawable-xxhdpi/ic_launcher.png
s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope
jar verified.
Warning:
This jar contains entries whose certificate chain is not validated.
Re-run with the -verbose and -certs options for more details.
What could I do ? 我能做什么 ? I also heard that there is a chaninging on the website http://developer.android.com/tools/publishing/app-signing.html#signapp Which say:
我还听说网站http://developer.android.com/tools/publishing/app-signing.html#signapp上有一个更改,其中说:
Caution: As of JDK 7, the default signing algorithim has changed, requiring you to specify the signature and digest algorithims (-sigalg and -digestalg) when you sign an APK. 注意:从JDK 7开始,默认的签名算法已更改,要求您在签名APK时指定签名并摘要算法(-sigalg和-digestalg)。
But I dont know what to change. 但是我不知道该改变什么。 I use the newest update of Android ADT
我使用的是Android ADT的最新更新
What android version is in your BlueStacks Emulator. BlueStacks模拟器中的Android版本是什么。 If it's android version is lower than your application version then is error raise.
如果它的android版本低于您的应用程序版本,则会引发错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.