The reason to cause this problem is ActionBar are only available in API11 above.
My case is using API8,
so that if i want to solve the problem I need change that API to API11 above
The error msg: ActionBar cannot be resolved to a type
Step1) Right click your project name, and than choose "Properies"
Step2) Select Android, than choose "API11".
Step3) After that , you can import ActionBar package:
But it would appear some new error msg.
From
<uses-sdkTo at least 11
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.INTERNET"/>
No comments :
Post a Comment