Reputation: 31
How do I change the build target of my app from 4.3.1 to 4.0? When I tried to change it I receive lots of errors such as
error: No resource identifier found for attribute 'layout_alignStart' in package 'android' Multiple markers at this line - listView1 cannot be resolved or is not a field - R cannot be resolved to a variable The import com.vote.system.R cannot be resolved
EDIT: I Already solved the problem, I exported the R.java from my Android 4.3 in the project, then changed the build target, and imported the R.java again and it works fine
Upvotes: 2
Views: 2418
Reputation: 3181
For Eclipse:
1) Go to Manifest File
2) Change minSDK, targetSDK and compileSDK to your desired values.
3) Clean and Rebuild.
For Android Studio:
1)Right click your project (on the left hand side in the "Project Panel"
2) Open Module settings (2nd last option most probably)
3) Go to app
4) In properties tab, select compile SDK version.
5) In flavours tab, change target and min SDK
6) Clean and Rebuild Project.
In android studio u can also go to build.gradle and change min, target and compilse SDK values, but not prefereed if you are beginner.
Sometimes, android studio/eclipse needs to be restarted.
Upvotes: 2