New concept of Android SDK in IntelliJ IDEA 10.5

The recent EAP of IntelliJ IDEA 10.5 introduces a new presentation of Android platform inside a project.

Previously, you could configure Android SDK inside Android facet settings, while JDK played the role of the main Project/Module SDK. IntelliJ IDEA 10.5 considers Android platform itself as a Project/Module SDK:

Thus, the standard JDK jars aren’t included to the classpath of your Android module. So, the IDE will not complete the java classes which are not supported by the Android platform anymore. Also, the usages of such classes will be correctly highlighted as errors:

Note, that in addition to the Android SDK, you still need a Java SDK because IntelliJ IDEA uses it for compilation. You’ll be prompted for it while creating a new Android SDK.

It is important to mention that once you open an existing Android project in IntelliJ IDEA 10.5 it will be converted automatically, no manual configuration needed.

You are welcome to try it in the latest IntelliJ IDEA 10.5 EAP build and let us know what you think.

This entry was posted in New Features and tagged , , . Bookmark the permalink.

17 Responses to New concept of Android SDK in IntelliJ IDEA 10.5

  1. Igor Konoplyanko says:

    Awesome! IntelliJ IDEA becomes better and better for Android development.

  2. Fredrik says:

    A welcome change.

  3. Thanks a lot. This is AWESOME. No more accidental swing or whatever imports .. should improve performance too. Love it.

  4. Taras Tielkes says:

    More specific completion would be nice for GWT as well..

  5. Chris says:

    this is how a multi language ide show work, love the consistency emerging here.

  6. larry says:

    “It is important to mention that once you open an existing Android project in IntelliJ IDEA 10.5 it will be converted automatically, no manual configuration needed.”

    Nope. Just upgraded. My android and django projects were both hosed :(

    Trying to create an android sdk by hand. It wants some %!%!% magic file besides the obvious folder choice like “android-10″ that I now have to look up somewhere.

    Please fix this.



  7. Nathan says:

    Choose the root of the SDK directory, not a platform directory. (I ran into the same problem, there is no error message when you choose the platform directory, only silent failure :( By trial and error I found that the root of SDK works, then gives you a dropdown to select the “build target”. IDE term overloading FTL.)

  8. ryan says:

    you don’t need any special files to add an Android SDK simply select your ANDROID_HOME directory when asked where the Android SDK is located. This will allow you to select whatever platforms you want to configure.

  9. Paul says:

    @Nathan “Choose the root of the SDK directory, not a platform directory.”
    Thanks, I was very confused about that!

  10. BJ says:

    Step by step instructions for newbies, with examples, please!

  11. BJ, check out these tutorials:
    Hope they help you.


  12. John Smith says:

    My projects are now utterly broken. Continuous Please specify an Android SDK messages on my projects that worked fine until the upgrade. Thanks a lot.

  13. Edward Jones says:

    The “Please specify an Android SDK” message also appeared for me when upgrading from v10 to v11. I have found a solution though which worked for me. Select File/Project Structure and then select Modules under the Project Settings heading.

    Under the Dependencies tab change the drop down next to Module SDK where it says ‘Project SDK’ or ’1.6 (java version “1.6.0_20″)’ to ‘Android 2.2 Platform (java version “1.6.0_20″)’ or whatever Java/Android SDK level you have installed. Click OK and the error should disappear!

    Hope this helps..

  14. bobthebob says:

    Also found this **incredibly** frustrating. Nothing “automatically” made these changes – I also just got “Please Select SDK” messages preventing me from compiling.
    I spent several HOURS trying to figure out WTF was going on and only managed to stumble onto this page by accident.

    I am happy that I won’t be getting any more requests to import Swing Window classes and whatnot – but for chrissake – you could’ve REALLY made this A LOT EASIER.

    I came over from Eclipse a few months ago, and while I love the features I just don’t get with Eclipse I have to say that I am STILL often confused by IntelliJ’s Project/Module/Facet project structure.
    It really seems a lot more difficult than it needs to be. Again – my reference point is Eclipse, and in Eclipse selecting SDK’s and such is a trivial matter.

    so – please take this into consideration – if you’re going to make your own paradigm for your IDE that’s fine, but make it a little more transparent or idiot-proof for the rest of us.

    oh – and while you’re at it PLEASE fix the ‘dark i-beam cursor on dark background’ issue!! drives me crazy!

  15. bobthebob says:

    ok – so now upon relaunching not only is my 10.5 project all screwed up – it no longer works in 10.0 either… seriously – what the bloody hell??!?

    and don’t hand me – “it’s not a bug, it’s a feature” – I shouldn’t have to spend ANY of my time dealing with this. I have deadlines and they are not being met because you decided to play games with how you implement your SDK’s??!?


    so uncool.

  16. HGW says:

    Thanks ,Edward Jones!!!

  17. Radhika Shendye says:

    Thanks a lot! I was stuck on this for over a day because intellij could not find my android sdk!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">