Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
684 views
in Technique[技术] by (71.8m points)

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

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 path -> choose Android on the left column and then click "Add". I choose "android-support-v7-appcompat". This name appears then in the right column of the table, on the left appears the path where the library is located: C:Program Filesadt-bundle-windows-x86-20131030sdkextrasandroidsupportv7appcompat. And it has a beautiful green check mark on the left!

I click Apply or Ok.

Then I go to this screen again, but though the path is still on the left in the table, there is a red cross on the left and a question mark, where "android-support-v7-appcompat" should have been. I have done exactly what is described in http://developer.android.com/tools/support-library/setup.html (title "Adding libraries with resources").

Has someone any idea????

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 Filesadt-bundle-windows-x86-20131030sdkextrasandroidsupportv7appcompat, then you have to move your own project somewhere on drive C: (e.g. C:UsersUserworkspace)

this work for me


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...