IntelliJ IDEA - Android JDK doesn't work

前端 未结 14 1221
离开以前
离开以前 2021-02-05 11:13

I\'ve just installed IntelliJ IDEA 10.0.0.2 Community edition
I\'ve installed Android SDK ... (C:\\Program Files\\Android\\android-sdk-windows)

I want to make a ne

14条回答
  •  醉话见心
    2021-02-05 11:50

    I just wasted a whole lot of time on this problem. My work station is running IntelliJ Ultimate 11 on Windows 7 64-bit. I was setting up my first Android project. Therefore, no SDKs were configured. First I selected the JDK, which was a no-brainer (C:\ProgramFiles (x86)\Java\jdk1.6.0_30). Next comes the part where you need to specify the Android SDK. First you click the elipsis ("...") and then click "Add New". Now here's the kicker... If you look carefully at the dialog box, you'll notice that "Configure new JSDK" is highlighted by default. What you need to do is change the selection to "Android SDK". Now you can select the directory of your Android SDK and you won't get that stupid error message.

    I literally wasted about a half an hour before I realized why the app kept telling me "This is not a valid SDK directory." Hopefully this will help someone else having the same problem.

    Don here: I had the same trouble in Windows 64 with 11.1.2 and 64bit java. found that only by clicking on the left window could I register my Android SDK.

提交回复
热议问题