Android Hello World Exception [英] Android Hello World Exception

查看:176
本文介绍了Android Hello World Exception的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力让这个hello world android应用程序正常工作。

我将完成这个安装过程并了解这个东西是如何轻松启动并运行Hello World应用程序的。我运行简单的hello world应用程序(完全按照它说的每一步)和POOF ......没有。我收到错误java.lang.IllegalArgumentException:错误版本:独立于com.android.sdkstats.sdkStatsService.normalizeVersion(sdkStatsService.java:467)

I am trying to get this hello world android application working.
I go through this installation process and read about how easy this thing is to get up and running with a "Hello World" application. I run the simple hello world application (following every step exactly as it says) and POOF... nothing. I get an error java.lang.IllegalArgumentException: Bad version: standalone at com.android.sdkstats.sdkStatsService.normalizeVersion(sdkStatsService.java:467)

任何想法如何解决这个问题?
我已经仔细检查了我的命名空间(所有3个)并且还使用XML编辑器尝试了这个...

Any idea how to fix this? I have double checked my namespaces (all 3 of them) and also tried this using the XML editor...

推荐答案

来自Eclipse:

Windows =>首选项=> Android

Windows => Preferences => Android

1)确保您的SDK位置正确

1) Ensure your SDK Location is correct

* 2)点击应用以填充Android的可用SDK列表

*2) Click "Apply" to populate the list of available SDK(s) for Android

摘要:设置SDK位置是不够的,如果你要设置位置,然后单击OK而不先应用,你会得到异常java.lang.IllegalArgumentException:Bad version。

Summary: Setting the SDK location is not enough, if you were to set the location, then click OK without Apply first, you would get the exception "java.lang.IllegalArgumentException: Bad version".

这篇关于Android Hello World Exception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆