应用程序无法安装:CertPath 未验证:null
我使用 Eclipse 3.7 编写了一个 Android 应用程序(目标 3.2),我尝试对该应用程序进行签名,但在目标计算机上,该应用程序无法安装,或者已安装但无法运行,并出现“应用程序未安装”错误。在调试模式下,应用程序可以使用临时证书正常工作。
我使用 jarsigner 检查了应用程序,它有 CertPath not validated: null
错误。
我还将 Manifest 参数 debuggable and test only 设置为 false。
使用 keytool,我使用以下命令行 -:
keytool -genkey -v -keystore vgpad.keystore -alias alias_name -sigalg SHA1withDSA -keyalg DSA -keysize 1024 -validity 10000
然后对于 Jarsigner,
jarsigner -keystore D:\dev\Java\jdk1.7.0_02\bin\vgpad.keystore -sigalg SHA1withDSA -digestalg SHA1 -storepass puffin -keypass puffin V-G-Pad.apk alias_name
我使用了各种不同的选项,并且还尝试从 Eclipse 导出签名的应用程序...仍然是相同的错误。欢迎任何帮助,谢谢。
I have written an Android app (target 3.2) using Eclipse 3.7, I tried to sign the App, but on the target machine, either the App won't install or it installed but doesn't run with "application is not installed" error. In debug mode the app works fine with the temporary certificate.
I checked the App with jarsigner and it has CertPath not validated: null
errors.
I have also set the Manifest parameter debuggable and test only to false.
With the keytool I use the following command line -:
keytool -genkey -v -keystore vgpad.keystore -alias alias_name -sigalg SHA1withDSA -keyalg DSA -keysize 1024 -validity 10000
then for the Jarsigner
jarsigner -keystore D:\dev\Java\jdk1.7.0_02\bin\vgpad.keystore -sigalg SHA1withDSA -digestalg SHA1 -storepass puffin -keypass puffin V-G-Pad.apk alias_name
I have used various different options and also tried from Eclipse, export signed app... still the same error. Any help would be welcome, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
清单必须包含 minsdk 版本和 maxsdkversion
还有另一种方法可以注册应用程序。
右键单击项目 --> 选择“Android Tools”选项 --> 在该选择的项目中“导出签名的应用程序包”
-->创建新的 .keystore 文件 有效期(年)= 50
稍后使用
设备上的命令提示符安装该签名的 apk,并使用以下命令
adb install yoursignedapk.apk
此签名的 apk 将成功安装在您的设备上
Manifest must contain the minsdk version and maxsdkversion
There is another way to sign up the application.
Right Click on Project -->Select "Android Tools" Option --> "Export Signed Application Package"
in that select project --> create new .keystore file validity(years) = 50
later install that signed apk by using
command prompt from your device with following command
adb install yoursignedapk.apk
this signed apk will successfully install on your device
事实上,我使用两个操作解决了这个问题,
求助于 Java 1.6.0.30 JDK,我之前使用的是 1.7,这解决了密钥和签名问题。
确保在清单中我只有一次 android.permission.WRITE_EXTERNAL_STORAGE,位于应用程序标记之前
这是在使用 adb logcat 命令查看 lancher 问题之后:
In fact I solved this using two actions,
resorting to the Java 1.6.0.30 JDK, I was using the 1.7 before, this solved the key and signing issues.
Ensured in the manifest I had only the android.permission.WRITE_EXTERNAL_STORAGE once, before the application tag
This was after using the adb logcat command to see the lancher issues :