Having trouble adding the SDK in IntelliJ… here is a solution to the problem.
Having trouble adding the SDK in IntelliJ
I can’t put my SDK into my IntelliJ project. I can’t seem to find the right path or something. This is the path I am using and contains all the packages. I’ve tried adding a number of paths, including the “sdk” folder and “sources”, but it keeps not accepting the path and the message I get is that it’s “not a valid SDK path”.
I can’t seem to figure out what the right path should be….
My SDK Manager:
Solution
You need to specify both the Java SDK and the Android SDK.
Because of a bug, you must first define a JDK (such as c:\Program Files (x86)\Java\jdk1.6.0_ 37
)。
Then define the Android SDK by pointing to its root directory (in your case it's the sdk
folder).