开发者

Android HelloWorld IllegalArgumentException

I have seen this question answered but the answers do not apply to me. I am a beginner to Android and I am trying to run HelloWorld with the Eclipse Plug-in that I have downloaded Api's 7 (2.1) and 8 (2.2) and have created a virtual devices for each version. I am running eclipse in xp with 1.6.0_22-b04 (32bit) no 64 bit jre installed on the system. I get the following stack trace when the emulator is launched:

IllegalArgumentException: bad version: standalone com.android.sdkstats.SdkStatsServer.normalizeVersion(SdkStatsService.java:467) com.android.sdkstats.SdkStatsServer.doPing(SdkStatsService.java:130) com.android.sdkstats.SdkStatsServer.ping(SdkStatsService开发者_如何学运维.java:85) com.android.ddms.Main.main(Main.java:85)

Any help is greatly appreciated. thanks, francisco


Apparently you created a run configuration in Eclipse for normal (console) application which calls com.android.ddms.Main.main.

You need to create a run configuration for Android: http://developer.android.com/resources/tutorials/hello-world.html#run

Edited:

Apparently this happens if you have 32-bit JDKs installed on Windows 7. Try uninstalling 32-bit JDK and use 64-bit JDK instead.


I saw this post but it does not apply to me. It might help Jaime out. I am still having my problem.

Here is a link with more detail about the Windows 7 problem:

E/ddms IllegalArgumentException 'Bad version' with both 32 and 64 bit Java JRE installed

On a machine that supports 64 bit i believe you will need to have the 64 jre/jdk installed. It definitly only supports one version of the jre.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜