I encountered this error after installing Intellij IDEA Ultimate 14.1 and opening an existing Android project I had created using Android Studio. It turns out I just had to add the Android SDK to my list of SDKs and fix the project/module SDK settings. This is how I did it:
Go toFile -> Project Structure
. Click on the Project tab under Project Settings. Under Project SDK click onNew -> Android SDK
.
Now select the existing directory for your Android SDK. In my case it was in this folder:
C:\Users\<windows username>\AppData\Local\Android\android-sdk
Click Ok. A menu pops up asking you to set the Java SDK + Build target. You can either change these or leave it as its defaults and hit Ok. You should now see “Android API XX Platform” in the Project SDK dropdown. Click apply on the bottom. Then go to the Modules tab under Project Settings and click on the folders in the modules listing.
For each folder go to the dependencies tab and change the Module SDK to the new Android SDK and click apply. Then click Ok to close the Project Structure dialog.
After doing the above, my project was fixed.
Similar Posts:
- How to Solve Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- Android studio change project name exception solution: can’t rename root module
- [Solved] IDEA Warning: Information:javac 1.8.0_251 was used to compile java sources
- After project initialization, it appears: unable to load script from assets’ index.android.bundle
- Android Stdio Compile project report Error:Failed to find target with hash string ‘android-24
- gradle: failed to find Build Tools revision 23.0.1 [Three Mehods to Solve]
- Could not find com.android.tools.build:gradle:3.3.0.
- Problem solving SDK platform tools component is missing
- android unity Error: your hardware does not support this application,sorry!
- Actionbar expiration problem