IntelliJ IDEA 12——不兼容的Android版本错误

时间:2021-07-29 07:00:32

I'm starting out Android development with IntelliJ IDEA 12.0. I have installed and configured JDK and Android SDK. I wanted to target Android SDK 2.3.3 so the SDK is configured as in the screenshot.

我用IntelliJ创意12.0开始Android开发。我已经安装并配置了JDK和Android SDK。我的目标是Android SDK 2.3.3,所以SDK的配置如图所示。

When I try and run the project though, I'm getting the following error:

当我尝试运行这个项目时,我得到了以下错误:

android-validator: [untitled] Incompatible version of Android SDK Platform-tools package. Min version is 11. Please, update it though SDK manager

Followed by

紧随其后的是

android-validator: [untitled] Incompatible version of Android SDK Tools package. Min version is 19. Please, update it though SDK manager

I wasn't able to find any information on this and not sure what this means. Any pointers is appreciated.

我找不到任何关于这个的信息,也不知道这意味着什么。任何指针都是感激。

--New project config-- IntelliJ IDEA 12——不兼容的Android版本错误

——新项目配置

--Install Android Packages-- IntelliJ IDEA 12——不兼容的Android版本错误

——安装安卓包

2 个解决方案

#1


4  

android-validator: [untitled] Incompatible version of Android SDK Platform-tools package. Min version is 11. Please, update it though SDK manager

Android -validator: [untitled] Android SDK平台工具包的不兼容版本。是11分钟版本。请更新它,尽管是SDK管理器。

Because you have revision 10 and the IntelliJ IDEA tool needs revision 11

因为您有修订10,IntelliJ IDEA工具需要修订11

android-validator: [untitled] Incompatible version of Android SDK Tools package. Min version is 19. Please, update it though SDK manager

Android -validator:[无题]不兼容版本的Android SDK工具包。分钟版本是19。请更新它,尽管是SDK管理器。

Because you have revision 16 and the IntelliJ IDEA tool needs revision 19

因为你有第16版,IntelliJ创意工具需要第19版

The mentioned minimal revisions are requirements for IntelliJ IDEA to provide Android tools and to compile your applications. You should definitly launch again the Android SDK Manager and check the Tools folder, as on your screenshot, and click on "Install 2 packages".

所提到的最小修订是IntelliJ IDEA提供Android工具和编译应用程序的要求。您应该再次启动Android SDK管理器并检查Tools文件夹,如您的屏幕截图所示,然后单击“Install 2 packages”。

#2


0  

I had the same issue. I updated "Android SDK Platform-tools" but it didn't work.
After that I realized that in the past I set c:\Android\android-sdk as the SDK folder. But the SDK manager was updating the folder named c:\Documents and Settings\my.user\Local Settings\Application Data\Android\android-sdk So IntelliJ was checking the old folder.

我也有同样的问题。我更新了“Android SDK平台工具”,但没有用。之后我意识到在过去我设置了c:\Android\ Android - SDK作为SDK文件夹。但是SDK经理更新名为c:\Documents and Settings\my.的文件夹用户\本地设置\应用程序数据\Android\ Android -sdk,所以IntelliJ正在检查旧文件夹。

Problem solved after changing to right folder. So be sure that you set new folder if you have such issue. Check help documentation for setting the SDK folders: http://www.jetbrains.com/idea/webhelp/configuring-global-project-and-module-sdks.html

问题解决后,更改为右文件夹。所以如果你有这样的问题,一定要设置新的文件夹。查看帮助文档以设置SDK文件夹:http://www.jetbrains.com/idea/webhelp/configuring-global-project-and-module-sdks.html

#1


4  

android-validator: [untitled] Incompatible version of Android SDK Platform-tools package. Min version is 11. Please, update it though SDK manager

Android -validator: [untitled] Android SDK平台工具包的不兼容版本。是11分钟版本。请更新它,尽管是SDK管理器。

Because you have revision 10 and the IntelliJ IDEA tool needs revision 11

因为您有修订10,IntelliJ IDEA工具需要修订11

android-validator: [untitled] Incompatible version of Android SDK Tools package. Min version is 19. Please, update it though SDK manager

Android -validator:[无题]不兼容版本的Android SDK工具包。分钟版本是19。请更新它,尽管是SDK管理器。

Because you have revision 16 and the IntelliJ IDEA tool needs revision 19

因为你有第16版,IntelliJ创意工具需要第19版

The mentioned minimal revisions are requirements for IntelliJ IDEA to provide Android tools and to compile your applications. You should definitly launch again the Android SDK Manager and check the Tools folder, as on your screenshot, and click on "Install 2 packages".

所提到的最小修订是IntelliJ IDEA提供Android工具和编译应用程序的要求。您应该再次启动Android SDK管理器并检查Tools文件夹,如您的屏幕截图所示,然后单击“Install 2 packages”。

#2


0  

I had the same issue. I updated "Android SDK Platform-tools" but it didn't work.
After that I realized that in the past I set c:\Android\android-sdk as the SDK folder. But the SDK manager was updating the folder named c:\Documents and Settings\my.user\Local Settings\Application Data\Android\android-sdk So IntelliJ was checking the old folder.

我也有同样的问题。我更新了“Android SDK平台工具”,但没有用。之后我意识到在过去我设置了c:\Android\ Android - SDK作为SDK文件夹。但是SDK经理更新名为c:\Documents and Settings\my.的文件夹用户\本地设置\应用程序数据\Android\ Android -sdk,所以IntelliJ正在检查旧文件夹。

Problem solved after changing to right folder. So be sure that you set new folder if you have such issue. Check help documentation for setting the SDK folders: http://www.jetbrains.com/idea/webhelp/configuring-global-project-and-module-sdks.html

问题解决后,更改为右文件夹。所以如果你有这样的问题,一定要设置新的文件夹。查看帮助文档以设置SDK文件夹:http://www.jetbrains.com/idea/webhelp/configuring-global-project-and-module-sdks.html