Search code examples
androidrhomobilerhodes

android build fails - No such file or directory - ./apkbuilder


I'm trying to build a package using rake run:android and I get the error No such file or directory - ./apkbuilder

My project setup is given below:

rhodes-3.5.1.12 ndk version: ndk-r8b 32 bit sdk version: android 4.2.2 API 17

I'd tried with 4.3 API 18 but it's not working.

To reach upto this point I'd copied the file aapt in to platform-tools also created a lib directory in platform-tools and put the dx.lib in it.

I'd tried with different combinations. Rhodes 3.4.2, ndk-r9 64 bit and 32 bit. Only ndk-r8 32 bit is working for me. Could anyone tell me what is the problem here?

Or a working combination of sdk, ndk and rhodes?

I've fixed the issue. Added a new answer below.


Solution

  • The problem of the missing apkbuilder.bat is not coming from the Android NDK but from the Android SDK. Google, in build tools r22 moved some files in different directory, breaking rhodes and a lot of other Android tools.

    You've different options:

    1. Use RhoMobile Suite v4.0
    2. Stick to RhoMobile Suite v.2.2 downloading the latest v3.5 rhodes gem from github (using the 3-5-stable branch).
    3. Use Android SDK build tools r21

    more information are available on Launchpad, the RhoMobile community site by Motorola Solutions.