android-support-v7-appcompat library project won't work

后端 未结 3 1504
暖寄归人
暖寄归人 2020-12-11 19:53

I am trying to add Support Library v7 to my clean android project as support library (with resources). I followed every instruction here: http://developer.android.com/tools/

相关标签:
3条回答
  • 2020-12-11 20:28

    Copy the library project to the folder where your android project is.

    Select File > Import.

    Select Existing Android Code Into Workspace and click Next.

    Browse and import the same to eclipse

    Once the library project is imported you can refer the same in your android project.

    This is similar to setting up google play services in eclipse described here. Check the 4th step

    http://developer.android.com/google/play-services/setup.html

    0 讨论(0)
  • 2020-12-11 20:38

    It looks like android-support-v7-appcompat.jar is missing from your libs folder.

    When you download the Android Support Library through the Android SDK Manager it makes the support .jar files you need available under {SDK Location}\extra\android\support.

    To use the v7 files, copy these to your project's /libs folder.

    • android-support-v4.jar
    • android-support-v7-appcompat.jar
    • android-support-v7-gridlayout.jar (*if needed)
    • android-support-v7-mediarouter.jar (*if needed)

    Typical gotchas (this looks OK in your setup):

    • Make sure the min SDK is at least API 7
    • Make sure the project target build is at least API 17

    For more information about using the support V7 package (including running the v7 samples) can be found at the RHM Guide to Android Support Lib.

    0 讨论(0)
  • 2020-12-11 20:40

    The issue seems to be in Absolute path in case of Windows base machine. I faced the issue of referencing support libraries When I moved Eclipse and related libraries to different drive than where the project was. Copy paste the libraries to folder on same derive in a way that it can pick by relative path. ..\androidCommonlib\appcompat android.library

    0 讨论(0)
提交回复
热议问题