Tuesday, December 10, 2013

[Android][Solved with image] ActionBar cannot be resolved to a type


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-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
    <uses-permission android:name="android.permission.INTERNET"/>
To at least 11
    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="18" />
    <uses-permission android:name="android.permission.INTERNET"/>

Then is okay




No comments :

Post a Comment