Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find any Android targets in this SDK in IntelliJ 2016

I get this error when I want to add android sdk to intellij 2016:

Cannot find any Android targets in this SDK

What I did:

  1. Download and install Java JDK-8
  2. Download Android SDK by installer_r24.4.1-windows.exe (144MB) and install it (Revision 24.4.1)
  3. Open SDK Manager to download and install packages
  4. Download and install IntelliJ IDEA Ultimate (version 2016.1.1)
  5. Run IntelliJ
  6. Open configuration -> Project Defaults -> Project Structure
  7. Add jdk location (C:\Program Files\Java\jdk1.8.0_91) in project tab
  8. Add the android sdk location (C:\Users\hosein\AppData\Local\Android\android-sdk) in project tab

In the last step I get this error:

enter image description here

like image 941
Hosein Aqajani Avatar asked Jul 05 '16 21:07

Hosein Aqajani


People also ask

How do I fix Android SDK not found?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.

How do I select Android SDK for IntelliJ?

From the main menu, select File | Project Structure | Project Settings | Modules. Select the module for which you want to set an SDK and click Dependencies. If the necessary SDK is already defined in IntelliJ IDEA, select it from the Module SDK list.

Where is android sdk installed?

by default, the "Android Studio IDE" will be installed in " C:\Program Files\Android\Android Studio ", and the "Android SDK" in " c:\Users\username\AppData\Local\Android\Sdk ".

Where is SDK manager in IntelliJ?

The android sdk is stored in usr/local/share/android-sdk .


1 Answers

Here is my solutions for this error message:

  • after adding the SDK and download the packages with the SDK Manager
  • got the error message: Cannot find any Android Targets in this SDK
  • close Intellij
  • reopen Intellij
  • it worked ..
like image 178
alwe Avatar answered Sep 28 '22 11:09

alwe