Cannot add android.support.v7 to my project build path

前端 未结 6 1885
遥遥无期
遥遥无期 2020-12-06 14:07

I am trying to add android-support-v7-appcompat to my project build path:

This is what I have done: Right-click on my own project -> build path -> configure build pa

相关标签:
6条回答
  • 2020-12-06 14:18
    • Remove all of your library projects
    • Do a clean of the project with the dependecies
    • Add the problematic library again
    • Add all of the other libraries
    0 讨论(0)
  • 2020-12-06 14:24

    Do as below:

    Go to File -->Import -->Import the library project into your workspace(select the project exists here C:\Program Files\adt-bundle-windows-x86-20131030\sdk\extras\android\support\v7\appcompat).

    Then Right Click on your project-->Select Android --> Add-->Select the library project you have imported.

    don't forget to checkmark the library project in Project-->Right Click-->Properties-->Java Build Path--->Order and Export

    0 讨论(0)
  • 2020-12-06 14:26

    you need to import the library into your workspace first then right click on the project you want to add it to and click properties and under android click add in the libraries section. select the imported library. dont import using build path

    0 讨论(0)
  • 2020-12-06 14:29

    the way how to preserve "green check mark" after reopen Properties window is putting your own project on the same letter drive, where is located project android-support-v7-appcompat

    so if you have it located in C:\Program Files\adt-bundle-windows-x86-20131030\sdk\extras\android\support\v7\appcompat, then you have to move your own project somewhere on drive C:\ (e.g. C:\Users\User\workspace)

    this work for me

    0 讨论(0)
  • 2020-12-06 14:30

    Changing the path of eclipse_workspace folder to the same driver as the Android SDK solved my problem.

    0 讨论(0)
  • 2020-12-06 14:31

    Select "Java Build Path" and tab Libraries instead of "Android". Click "Add external Jars..."

    or

    Copy the file to your "libs" folder and right click on the file and select "Build Path" -> "Add to Build Path"

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