andrew
andrew

Reputation: 2077

Android SDK in Android Studio

I have downloaded the Android Studio but when I want to create a new project, an error pops up saying "Your Android SDK is out date or missing templates..

How do I fix this project, or how do I update the SDK in the Android Studio?

Upvotes: 0

Views: 351

Answers (4)

Oke
Oke

Reputation: 113

Had a similar issue in linux. I am new user to android without any projects, I followed the instructions in https://developer.android.com/sdk/installing/adding-packages.html , Once I got to "In Eclipse or Android Studio, click SDK Manager in the toolbar", I noticed that from the welcome screen configure> Sdk Manager was greyed out. To solve,closed the program and relaunched as a sudo/superuser. Then go to Project Defaults> Project Structure. In the Android SDK location field go to "directory-where-you-installed-android-studio/android-studio/sdk'. Once done, click ok. Then close and relaunch the program once more. The SDK manger should be active now

Upvotes: 0

Milan Kerslager
Milan Kerslager

Reputation: 464

This seems like permission problem. Someone who packed Android Studio, has the original files under non-root account. If you unpack it as root, the files and dirs has no permission for "other" (just for owner). The person who is packing Android Studio knows a lot about Android and Java, but not much about Unix permissions (uch!). There are two possible solutions:

a) unpack android-studio-bundle-...-linux.tgz as normal user, not as root (this has an advantage - you will be able to update Andriod Studio by clicking menu; but this is generally stupid because you are open to malware attack)

b) fix read permissions for files and dirs for whole android-studio directory with something like: chmod -R 755 /opt/android-studio (not ideal because all files has "x" then, but it works)

Upvotes: 0

Harshid Vasoya
Harshid Vasoya

Reputation: 5721

You can update your sdk in many ways.

1. Download sdk from developer site.

SET:file->project Structure->in android SDK section set custom path of sdk

2.Tools->Android->SDK manager update sdk

Upvotes: 1

Update

Click here and update your SDK ;)

Upvotes: 4

Related Questions