Closed GoogleCodeExporter closed 8 years ago
Original comment by vitalyster
on 25 Oct 2012 at 7:44
ant build-android (run in toplevel project directory, not in android/ one)
Original comment by vitalyster
on 25 Oct 2012 at 7:45
Sorry but does that build with debug or release keys? I need release.
Original comment by david8bl...@gmail.com
on 25 Oct 2012 at 9:23
you can specify keystore file, key alias and password in
android/local.properties file and it will use it for release build
Original comment by vitalyster
on 25 Oct 2012 at 9:25
Check this for detailed info -
http://androidmaterial.blogspot.com/2012/02/android-ant-build-android-automated.
html
Original comment by vitalyster
on 25 Oct 2012 at 9:28
$cd android ; android update project -p . ; cd .. ; ant build-android
error Source resource does not exist:
/home/gerry/bm2/${netbeans.user}/build.properties
Original comment by david8bl...@gmail.com
on 25 Oct 2012 at 10:47
I am trying to build the app for the F-droid.org repository using the fdroid
tools. I basically just uses ant (netbeans not allowed!). This is how the above
command would translate into an fdroid recipe:
Build
Version:0.8.1222,1222,1228,subdir=android,target=android-16,antcommand=build-and
roid,prebuild=cd ../
(Normally the ant target is release.)
Original comment by david8bl...@gmail.com
on 25 Oct 2012 at 11:21
However the error here is different: BUILD FAILED
Target "build-android" does not exist in the project "BombusModActivity".
Total time: 1 second
Original comment by david8bl...@gmail.com
on 25 Oct 2012 at 11:22
The main build script for ant is build.xml in the *root* project directory, not
in android/ one. So you don't need "cd android/" here.
Original comment by vitalyster
on 25 Oct 2012 at 11:48
But I can't do $android update project in the root directory.
F-droid always starts in the AndroidManifest.xml directory so there is no way
of changing that.
Original comment by david8bl...@gmail.com
on 25 Oct 2012 at 1:56
"android update project -p android/"
Original comment by vitalyster
on 25 Oct 2012 at 2:48
It looks like it needs netbeans
Original comment by david8bl...@gmail.com
on 26 Oct 2012 at 11:41
Try r1304 - it should build without netbeans, you need antenna library from
http://antenna.sourceforge.net/ (path to antenna.jar specified in
android/project.properties)
To build apk run "ant release-nonb" from android/ directory
Original comment by vitalyster
on 6 May 2013 at 11:50
Original issue reported on code.google.com by
vovkav@gmail.com
on 25 Oct 2012 at 7:37