Reputation: 377
I am getting an "SDK is out of date" error. I've seen a few other posts mention something about editing a path variable but I'm not really sure what this means. If someone could explain what I need to do to get past this error I'd really appreciate it! Thanks
Upvotes: 2
Views: 2234
Reputation: 464
Under Unix (Linux/MacOS X), 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
Reputation: 4386
You need to update your default project settings. Go to File > Other Settings > Default Project Structure. Change the Project SDK setting to Android SDK. This should clear the error for all new projects.
Upvotes: 1
Reputation: 49241
Run ANDROID_SDK_DIR/tools/android
and update Android SDK tools to version 22, Platform and Build tools to version 17.
Upvotes: 0