Android native module build error sdk 1.8.0.1

You must Login before you can answer or comment on any questions.

Hi everyone,

I want to create a native module on mobile sdk 1.8.0.1 for android. I've successfully created my module project using command line and imported it onto eclipse.

After solving build path problem (kroll-apt.jar and kroll-common.jar are missing in generated project), I want to build the project without making any change on it. I get the following error while executing ant task :

pre.compile:
ndk.build:
     [copy] Copying 1 file to /Users/bst/Documents/workspace/src.android/twixpix4/build/generated
     [copy] Copying 1 file to /Users/bst/Documents/workspace/src.android/twixpix4/build/generated/jni
     [exec] usage: dirname path
     [exec] make: /Users/bst/build/core/build-local.mk: No such file or directory
     [exec] make: *** No rule to make target `/Users/bst/build/core/build-local.mk'.  Stop.
 
BUILD FAILED
/Users/bst/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/module/android/build.xml:226: exec returned: 2
Does anybody have an idea of what is the root of this problem (bug??) and if any workaround is known?

Thank you very much for your help

2 Answers

I answer my own question, ndk does not like space in path, I moved it in a 'space less' path, changed build.properties and the compilation finally succeed

You should update your SDK to 2.1.1 now as with new version you do not have to edit your project for the kroll jars. Moreover, i escaped the space in the path and it went well for me.

Your Answer

Think you can help? Login to answer this question!