rubelnimbuzz / bm2

Automatically exported from code.google.com/p/bm2
GNU General Public License v2.0
0 stars 0 forks source link

build/org.bombusmod/build/android/preprocessed does not exist. #225

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
при сборке вылезает следующее: 
"build/org.bombusmod/build/android/preprocessed does not exist."

Пожалуйста, отвечайте на аглицком...

Original issue reported on code.google.com by vovkav@gmail.com on 25 Oct 2012 at 7:37

GoogleCodeExporter commented 8 years ago

Original comment by vitalyster on 25 Oct 2012 at 7:44

GoogleCodeExporter commented 8 years ago
ant build-android (run in toplevel project directory, not in android/ one)

Original comment by vitalyster on 25 Oct 2012 at 7:45

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
$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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
"android update project -p android/"

Original comment by vitalyster on 25 Oct 2012 at 2:48

GoogleCodeExporter commented 8 years ago
It looks like it needs netbeans

Original comment by david8bl...@gmail.com on 26 Oct 2012 at 11:41

GoogleCodeExporter commented 8 years ago
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