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.
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.
"…../build.xml:55: sdk.dir is missing"
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.
Compile error
"-compile:
[javac] Compiling 34 source files to /home/gordon/FBReader_mastar/FBReaderJ/third-party/android-filechooser/code/bin/classes
[javac] /home/gordon/FBReader_mastar/FBReaderJ/third-party/android-filechooser/code/src/group/pals/android/lib/ui/filechooser/utils/FileComparator.java:16: error: package org.fbreader.util does not exist
[javac] import org.fbreader.util.NaturalOrderComparator;
[javac] "
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.
Missing support library
"[javac] /home/gordon/FBReader_mastar/FBReaderJ/third-party/drag-sort-listview/library/src/com/mobeta/android/dslv/DragSortCursorAdapter.java:10: error: package android.support.v4.widget does not exist
[javac] import android.support.v4.widget.CursorAdapter;
[javac] "
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.
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.