Home Changing API level Android Studio
Reply: 0

Changing API level Android Studio

user10531
1#
user10531 Published in September 20, 2018, 1:07 pm

I want to change the minimum SDK version in Android Studio from API 12 to API 14. I have tried changing it in the manifest file, i.e.,

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="18" />

and rebuilding the project, but I still get the Android Studio IDE throwing up some errors. I presume I have to set the min SDK in 'project properties' or something similar so the IDE recognizes the change, but I can't find where this is done in Android Studio.

share|improve this question
  • 1
    what is that some errors? we can't help you without logcat – Arash GM Oct 19 '13 at 10:46
  • 1
    They aren't compilation errors. It is the IDE giving a red underline when I'm trying to use `GridLayout' in the layout xml, i.e., telling me that a minimum API level 14 is required. Therefore, there must be somewhere in Android Studio where you can set the minimum API level after you have created the project. I have seen similar posts for Eclipse, but not for Android Studio. – James B Oct 19 '13 at 10:50
  • Have you instaled the API level 14 SDK package? – ramaral Oct 19 '13 at 11:34
  • If I start a new project and select API level 14 from the outset I have no problem developing in Android Studio, i.e., I must have API Level 14 SDK installed. However, if I simply want to update an existing project to use API 14 as minimum, I can't work out where in the Android Studio GUI IDE that I tell it to do this. – James B Oct 19 '13 at 11:42
  • Post your Logcat. and to change the MinSDKVersion this is the very simplest solution which u have already tried.. i.e.change in Manifest – Mitesh Shah Oct 19 '13 at 12:23

14 Answers 14

active oldest votes
up vote 520 down vote accepted
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.634755 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO