Android studio update compile sdk version

salx32 picture salx32 · Mar 7, 2017 · Viewed 7.4k times · Source

I an using android studio in Ubuntu. I want to update compile sdk version. Now I can select "API 23: Android 6.0 (Marshmallow)" as maximum version.

Project Structure Window

Now I want to Increase This. What should I update from SDK manager. I want to update things least as possible because have slow and limited internet connection.

Answer

Kelevandos picture Kelevandos · Mar 7, 2017

Please go to the build.gradle file of your project and find this line:

 compileSdkVersion 23

Change the number to whatever you want (current max is 25). Then try to build and if you are missing the API in your SDK, you will get an error with instructions on how to download it :-)