geometer / FBReaderJ

Official FBReaderJ project repository
http://www.fbreader.org/FBReaderJ/
1.83k stars 802 forks source link

Errors when doing ant build for the first time #365

Open goldyliang opened 8 years ago

goldyliang commented 8 years ago

There are some errors when making ant build for the first time, after cloning to local directory and running "ant release". Some fix can be made to the configuration and some java files to make it smoother.

Additional information can be found at: http://www.goldyliang.net/blog/how-to-build-fbreaderj-android

Such errors and fixes are as below:

Fix: one can install additional SDK versions (totally four versions including obselete ones), but it does not make sense at all. The project.properties files can be updated to target to the same SDK version for all five sub-projects.

Fix: adding local.properties in the root folder is not enough. Shall copy the same file for all the sub-projects as well. HowToBuild shall include this tips.

Fix: this error looks like a loop-dependency. It is suggested to move the class NaturalOrderComparator to pakcage group.pals.android.lib.ui.filechooser.utils.

Fix: there shall be a way to point out the path of support library. However the only way that works for me, is to copy another the library jar file under libs/ folder, just like the one in FBReaderJ/libs. We can include the additional copy in Git repositary.

eiddoel commented 8 years ago

Thank you ,I have the same problem. Now I fix it with your guide.