Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build is broken (on Mac) #236

Open
tehsenaus opened this issue Jun 17, 2015 · 8 comments
Open

Android build is broken (on Mac) #236

tehsenaus opened this issue Jun 17, 2015 · 8 comments

Comments

@tehsenaus
Copy link

I'm getting the following error:

BUILD FAILED
                   /usr/local/Cellar/android-sdk/24.2/tools/ant/build.xml:597: The following error occurred while executing this line:
                   /usr/local/Cellar/android-sdk/24.2/tools/ant/build.xml:649: The following error occurred while executing this line:
                   /usr/local/Cellar/android-sdk/24.2/tools/ant/build.xml:694: Execute failed: java.io.IOException: Cannot run program "/Users/sen/Projects/Apps/orbit/modules/devkit-core/modules/native-android/TeaLeaf/${aapt}" (in directory "/Users/sen/Projects/Apps/orbit/modules/devkit-core/modules/native-android/TeaLeaf"): error=2, No such file or directory

aapt is installed and available on the path:

$ which aapt
/usr/local/bin/aapt
@tehsenaus
Copy link
Author

Is anyone looking into the Android build problems? I want to release my game soon.

@collingreen
Copy link
Contributor

@tehsenaus - I haven't seen that error before and android builds are working on my machine. Which version of devkit do you have installed and which version of devkit-core is in your game?

@oodavid
Copy link

oodavid commented Jul 4, 2015

I've been away from my game for a few weeks to do some freelancing; before I downed tools on the game I'd just updated to devkit-core#v3.0.0-rc1 and was also having issues building. I used npm to re-install devkit - JWilm said it'd be easier to debug if I'd installed directly via github, however the issue remains.

Trying to build for Android doesn't give me a great deal of useful info, maybe the Android NDK Warnings are an issue?:

http://pastebin.com/raw.php?i=6VaFuVFA

On iOS I have other build issues, not sure if they have a common stem.

I'll post more info ASAP (am away for a few days).

@tehsenaus
Copy link
Author

I tried this with v3.0.0-rc1 of devkit and devkit-core, and also v3.0.0-rc2

@tehsenaus
Copy link
Author

Also just tried 2.1.1, same issue

@oodavid
Copy link

oodavid commented Jul 6, 2015

@tehsenaus - I'm in the same boat!

Thought I'd have a good look at the dependencies lists and tried:

  • completely removing devkit
  • updating various brew formulas (showed android-sdk, ant and cmake were out of date)
brew update
brew outdated
brew upgrade --all

So now I'm using v3.0.0-rc2.

If I run devkit release native-android I get various / inconsistent results with each run:

  1. http://pastebin.com/raw.php?i=DpEW7T3R - first run, includes the JS compression, terminates abruptly
  2. http://pastebin.com/raw.php?i=3u7jktTc - second run, appears to complain about missing core files
  3. http://pastebin.com/raw.php?i=vAVmXbct - third run, more complaints about missing core files
  4. http://pastebin.com/raw.php?i=PCt6RbLN - fourth run - different
  5. http://pastebin.com/raw.php?i=uvFZu6cY - fifth run - different
  6. http://pastebin.com/raw.php?i=Y0QHuHhu

Even though I'm running the same command the output varies enough that I'm left baffled. I would have expected the first-run to any one-off processing and subsequent runs to be identical. Hopefully this is useful for spotting patterns...

@fairfieldt
Copy link
Member

It looks like your devkit install didn't finish completely. That will install everything needed for the android build, and it looks like you're missing some files.

Can you try running devkit install in the game directory again. If it's still broken after that, post the output from the install command.

@jwilm
Copy link
Contributor

jwilm commented Jul 6, 2015

@oodavid and I talked on IRC. There were a couple of issues with his builds:

  1. Missing core symlink in native-android/TeaLeaf/jni. Filed at native-android/#27
  2. Needed Android SDK 19. This isn't anything we can fix, but we can fix the error reporting to actually suggest that it's an issue. Filed at native-android/#28
  3. ant looks for local.properties in the native-android source tree instead of in the build folder. Not sure what the root cause is there, but there is a workaround where a user can copy the local.properties from the build tree to the expected location in the native-android source tree. Relevant lines from @oodavid's builds:
/usr/local/Cellar/android-sdk/24.3.3/tools/ant/build.xml:597: The following error occurred while executing this line:
/Users/david/Documents/button-up/devkit/modules/devkit-core/modules/native-android/TeaLeaf/build.xml:7: Source resource does not exist: /Users/david/Documents/button-up/devkit/modules/devkit-core/modules/native-android/TeaLeaf/local.properties

Here are IRC logs from debugging with David in case they are helpful to anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants