You are not logged in.

#1 2013-10-21 16:12:01

themusicalduck
Member
Registered: 2011-07-04
Posts: 147

Android Studio can't find JDK or Android SDK

I've downloaded the latest Android Studio from https://developer.android.com/sdk/insta … tudio.html

I have the android SDK installed from the AUR and JDK 7 also installed from the AUR. I also have a copy of the latest Android SDK in my home folder. I can tell Android Studio where these folders are in Configure > Project Defaults > Project Structure, but I get this error message when I try to start a new project:

Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later. You can configure your SDK via Configure | Project Defaults | Project Structure | SDKs

If I re-open Project Structure settings, the locations are blank. It doesn't seem to save the locations I put in at all. Also, every time I open Android Studio, it asks for the location of the Android SDK (but the JDK).

I can see that the Android SDK is in /opt/android-sdk and JDK is in /opt/java.

Thanks.

Offline

#2 2013-10-25 01:45:22

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: Android Studio can't find JDK or Android SDK

I don't know if it's related since I use the command line but I found that the command "android list targets" didn't work as a regular user.  It did work after I ran the command once as root - it sets up some files in /opt.

Offline

#3 2013-10-25 02:06:50

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: Android Studio can't find JDK or Android SDK

make sure the ownership of those folders is "your user name":users.

Offline

Board footer

Powered by FluxBB