Android的API 21只允许创建空活动只允许、Android、API

2023-09-03 22:13:07 作者:猜不透人心う

升级到API 21我不能在任何项目中创建新的空白activitys和后,当我创建一个新的,让我创建是空单的唯一活动,否则,它创建src和资源文件夹为空。 我使用的Eclipse。我试过这里的解决方案 http://developer.android.com/ SDK /安装/安装-adt.html#下载,但它已经被安装。

After upgrading to API 21 i can't create new blank activitys in any project and when i create a new one the only activity that allows me to create is an empty one, otherwise it creates the src and res folders empty. I'm using eclipse. i've tried the solution here http://developer.android.com/sdk/installing/installing-adt.html#Download, but it is already installed.

请,帮助。

推荐答案

在ADT和SDK工具必须兼容。 例如, 如果最新的ADT版本是ADT 23.0.4。和相应的SDK工具的版本是23.0.5。你更新你的SDK工具版本为24.0.1,但目前还没有ADT的版本可以支持。所以,你应该的roolback的SDK工具版本23.0.5。 这里是链接。

The ADT and SDK Tools must be compatible. For example, If the latest ADT version is "ADT 23.0.4". And the corresponding SDK Tools version is 23.0.5. You updated your SDK Tools version to 24.0.1, but there are no ADT version can support. So you should roolback to the SDK Tool version 23.0.5. Here is the link.

它可以帮助你。