It can be solved by Add Support Library in Eclipse menu.
- New a Android project target Android 3.0 (API Level 11).
- Modify AndroidManifest.xml to specify minSdkVersion and targetSdkVersion:
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="11"/>
- Add Android Support Library.
Right click on the project in Eclipse, select Android Tools, Add Support Library...
Accept to install Android Support.
- Test it
Modify your activity extends FragmentActivity instead Activity, and import android.support.v4.app.FragmentActivity.
Now you can run it without error.
Title: Add Android Support Package
Rating: 100% based on 99998 ratings. 10 user reviews.
Post by 1:43 AM
Rating: 100% based on 99998 ratings. 10 user reviews.
Post by 1:43 AM
0 comments:
Post a Comment