intelliJ IDEA 13 error: please select Android SDK

2019-01-21 10:10发布

I have installed Android SDK 22.3 and JDK 1.7 update 21 on Win7 x64. Now I created an empty android application project using intelliJ 13.0.1 (also use Emulator as target device) and tried to build the project, but encountered the 'Error: Please select Android SDK'.

So I choose Emulator as the Target Device, but I could not select my AVD, as there is a Error: Cannot find any configured Android SDK.

In the Project Structure, it clearly shows 'Android 4.4.2 platform' as Project SDK. So I am totally confused, don't know how to resolve the issue.

ps. I was upgrading intelliJ 12.1.2 to intelliJ 13.0.1, and all the settings were automatically inherited from 12.1.2 when launching 13.0.1, but it seems not all the settings were exactly copied over to 13.0.1, which is unexpected.

cheers

18条回答
霸刀☆藐视天下
2楼-- · 2019-01-21 10:41

You have to Select Build Tool Version from your project setting.

  1. Select Project App Folder
  2. Press F4 OR Right Click on Project App Folder and open Module Settings In The Properties tab select Build Tool Version from List

This will work on my side i hope it will help you.

查看更多
等我变得足够好
3楼-- · 2019-01-21 10:41

I have same problem once.I solved this by File->Open->other project,then switch this project by this way.

查看更多
成全新的幸福
4楼-- · 2019-01-21 10:43

Seems a lot like IDEA can't find the Android SDK.

Have restarted the computer after using the Android SDK Installer?

After that, have you started the SDK Manager to install the Android 4.2.2 SDK?

Can you check the Android_SDK_HOME environment variable?


Take into account that the Android SDK Installer just installs a Manager. After that, you have to install an SDK (or several).

Also, when you see 'Android 4.4.2 platform' in the Project Structure, that means that the project will ask for that SDK. It doesn't mean that the SDK has been installed.

查看更多
Summer. ? 凉城
5楼-- · 2019-01-21 10:44
  1. Go to Project structure (Ctrl + Alt + shift + S) -> Platforn settings -> SDKs -> press "Plus" icon
  2. Select "Android SDK" and input the SDKs path (for exanple: C:\Program Files (x86)\Android\android-sdk)
  3. Apply or OK button
  4. Be happy
查看更多
一纸荒年 Trace。
6楼-- · 2019-01-21 10:44

check if you have installed all the add-ons that are necessary. Also I recommend you to use a real android phone for debugging. It's better, It's real and faster.

查看更多
Ridiculous、
7楼-- · 2019-01-21 10:45

Delete all android SDKs from Intellij and add them again.

To do this open project structure, in SDK pane, delete all android SDK, click OK. open project structure and add them again.

查看更多
登录 后发表回答