0

我已将 ActionBarSherlock 作为库包含在我的项目中,尽管它不是路径独立的。因此,当我将它推入我的仓库时,库路径变得混乱。我该如何改变呢?如何使其路径独立?

如果它是一个 Jar 文件,我可以将它包含在我项目的 lib 文件夹中,但它本身就是一个库。该怎么办?

4

1 回答 1

1

Check your project.properties file to see where it is pointing to in regard to ABS.. if it says something like:

android.library.reference.1=/myfiles/location/bleh/blah/foo/ActionBarSherlock

and your project that references it is also in /myfiles/location/bleh/blah/foo/ (its nice to keep them in the same folder for simplicity)

you can change it to :

android.library.reference.1=../ActionBarSherlock

That way when you check out your repo all of your library references will be intact (provided that folder structure is intact on the actual repository).

and yes, despite the project.properties file saying "do not change me ohh nooo!" you can change it without any problems

于 2012-02-24T18:49:57.390 回答