Android:screenorientation="sensorlandscape" Showing Error For A Project With The Minimum Sdk As 2.2
Solution 1:
"sensorLandscape":Landscape orientation, but can be either normal or reverse landscape based on the device sensor.Added in API level 9. so i think your minsdkVersion should be 9 instead of 8...
Solution 2:
Aha! This environment is just /made/ to drive you nuts, isn't it?
For my project I was setting the minSDK to 9 or even 12, nothing made any difference.
Of course, when I'd created the project, I'd built it for minSDK 8...which means I had the android-8 (2.2) library listed for my project to link against.
For any other frustrated newbies (like me) that run into this the steps I took to resolve it are: In the Package Explorer on the left, right click on 'Android 2.2'. Select 'Build Path->Remove from Build Path'. Right click on the project name, select 'Build Path->Configure Build Path' Click on 'Android' in the menu on the left. untick the 'Android 2.2' box, and tick the 'Android 2.3.1' box (or as appropriate). Click 'Apply' then 'OK'. Right click on the project again and select 'Build Path->Add Libraries' Select "Android Classpath Container", click 'Next'. Click 'Finish'.
Now, clear your logs, clean the project, and try a build again. Hopefully, that will work better for you as it did for me.
Post a Comment for "Android:screenorientation="sensorlandscape" Showing Error For A Project With The Minimum Sdk As 2.2"