在使用eclispe创建一个hello world Androidproject之后,我使用普通文件从基本的android项目创建了一个证书。我使用了这个网站的cmd行输入:
http://pavan2pyati.blogspot.in/2013/09/android-apk-generation-through-command.html?m=1
我现在他们在代码中有些错误......你必须将aapt和lib文件夹复制到platform-tools以及dx batchfile中。 Futherelse我不得不在“创建APK文件”之前删除bin文件夹中的AndroidManifest.xml。
在所有签名过程之后,我没有得到任何错误。但是当我尝试使用BlueStacks Emulator启动我的Android应用程序时,我收到错误:“install_parse_failed_no_certificates”
所以我用jarsigner检查了该文件-verify -verbose MySecondApp.apk
获得以下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.
我该怎么办? 我还听说网站上有一个chaninging http://developer.android.com/tools/publishing/app-signing.html#signapp 哪个说:
警告:从JDK 7开始,默认签名算法已更改,要求您在签署APK时指定签名和摘要算法(-sigalg和-digestalg)。
但我不知道该改变什么。我使用Android ADT的最新更新
答案 0 :(得分:0)
您的BlueStacks仿真器中有哪些Android版本。如果它的android版本低于你的应用程序版本,则会出现错误提升。