Search code examples
aidlbuildozer

Buildozer not finding aidl


I have installed Docker and am using it with buildozer to create an Android app. (See here).

Buildozer now fails with the error: Home PUBLIC Stack Overflow Tags Users Jobs Teams Q&A for work Learn More Title

Body

# Check that aidl can be executed
# build-tools folder not found /home/user/.buildozer/android/platform/android-sdk/build-tools
# Search for Aidl
# Aidl not found, please install it.

(See the github thread here.)

So I created .../android/platform/android-sdk/build-tools/0/

and copied in /usr/bin/aidl

Buildozer now fails with:

# Cwd /home/user/.buildozer/android/platform/android-sdk
# Check that aidl can be executed
# Search for Aidl
# Aidl not found, please install it.

As the original github thread has been closed, does anyone know how to fix this?

Edit [30 Apr 2019]

I notice a similar question here that has not been answered. Do the people that might know not use Stack-Exchange?


Solution

  • I had the same problem for months and came across this, which solved the problem for me.

    The error message was misleading; AIDL was present, but the prompt to accept the SDK license and therefore use AIDL was not showing.

    When I set log_level = 2 in the spec file then I got the correct prompts and error messages.

    May be worth trying.