Problem compiling Godot 2.1.2 for Android on ubuntu 16.04 64-bit

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Freeman
:warning: Old Version Published before Godot 3 was released.

While trying to compile for Android (on ubuntu Linux 16.04 64-bit) I got an error:

Incremental java compilation is an incubating feature. :preBuild
UP-TO-DATE :preDebugBuild UP-TO-DATE :checkDebugManifest
:preReleaseBuild UP-TO-DATE
:prepareComAndroidSupportSupportV42340Library UP-TO-DATE
:prepareDebugDependencies :compileDebugAidl FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:compileDebugAidl’.

java.lang.RuntimeException: org.gradle.process.internal.ExecException: A problem occurred starting
process ‘command
‘/home/user1/Android/android-sdk-linux/build-tools/23.0.3/aidl’’

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

:bust_in_silhouette: Reply From: Freeman

Additional files that docs not mention need to be installed:
lib32z1 lib32ncurses5 lib32stdc++6
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6

For Fedora it probably should be zlib.i686 ncurses-libs.i686 bzip2-libs.i686