问题
I am making an android app that contains action bar and fragment which are not supported for API level 8! So I just tried to import support library V7 to fix this problem!
But when I try to do it , it doesn't find support library for V7 , there is support.v4 but not v7. what should I do to fix it? Should I download anything for my android SDK?
回答1:
Download Android Support Library in Your SDK manager under Extras
. Then Import appcompat
from following folder in your sdk.
Android-SDK\extras\android\support\v7\appcompat
回答2:
The first step is to download the library through the SDK manager. Support library v7 is a library project, so needs to be added as a new project to your workspace.
Note: You can't just drop the .jar in because it has additional XML resources.
There's some pretty thorough instructions on how to add it located here.
来源:https://stackoverflow.com/questions/24179340/android-support-library-v7