本文介绍了错误的项目'HelloAndroid“跑商”的Andr​​oid程序包生成器“。太阳/安全/ X509 / X500Name的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装Eclipse的经典3.7.2和Android SDK。同时安装/配置的Eclipse ADT插件。

I just installed Eclipse-Classic 3.7.2 and android SDK. Also installed/configured eclipse with ADT plugin.

现在按照http://developer.android.com/resources/tutorials/hello-world.html以创建Hello World的应用程序,我试图运行在Android模拟器的应用程序。但是,这是引发错误

Now after following the steps in http://developer.android.com/resources/tutorials/hello-world.html to create a "Hello World" application I tried to run the application in Android Emulator. But this is throwing an error

错误在生成过程中发生的。运行建设者错误的Andr​​oid  包'项目'生成器HelloAndroid。  太阳/安全/ X509 / X500Name

能否请您解释我我究竟做错了什么,或者我需要什么来解决这个错误。

Can you please explain me what am I doing wrong here, or what do I need to fix for this error.

感谢您Zeeshan

Thank youZeeshan

推荐答案

的问题与你正在使用的JVM,而且还必须与此JVM密钥工具生成证书。

The problem is related with the JVM you are working with, but also the certificate that have to be generated with the keytool from this JVM.

在这里,你是我已经习惯了解决这个问题,在我的Linux操作系统Ubuntu v11.04系统的命令:

Here you are the commands i have used to solve this problem in my Linux Ubuntu v11.04 system:

  1. 我已经安装了甲骨文/ Sun SDK 1.6(SDK而非JRE的)我的电脑上。

  1. I have installed the Oracle/Sun SDK 1.6 ( SDK not the JRE one ) on my computer.

我做了这个新的太阳JVM下面的指令默认

I made this new SUN JVM the default with the following instruction

sudo的更新,替代--config java的

sudo update-alternatives --config java

注意列表显示所有可用的JVM在系统上,选择SUN之一。

Note A list is shown with all the available JVM on your system, select the SUN one.

现在,您将能够与Sun提供的JVM执行以下命令:

Now you will be able to execute this command with the JVM provided by SUN:

keytool -genkey -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -validity 14000

注意您应该删除旧的debug.keystore文件执行此命令之前,或将其重命名,如你所愿。

Note You should delete the old debug.keystore file before you execute this command, or rename it as you wish.

现在你的系统启动并正常运行,则需要在Eclipse中配置新的JVM,以编译这个新版本。

Now that your system is up and running, then you need to configure your new JVM in Eclipse in order to compile with this new version.

这篇关于错误的项目'HelloAndroid“跑商”的Andr​​oid程序包生成器“。太阳/安全/ X509 / X500Name的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 13:14