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

Error: Aidl cannot be executed #532

Closed
Enteleform opened this issue Jul 22, 2017 · 12 comments
Closed

Error: Aidl cannot be executed #532

Enteleform opened this issue Jul 22, 2017 · 12 comments

Comments

@Enteleform
Copy link

Enteleform commented Jul 22, 2017

System:
    Windows 10 x64 + Bash on Ubuntu 16.04.2 LTS
    Python 3.5.2
    Buildozer0.33

Followed the instructions @ buildozer.readthedocs.org/en/latest/installation.html
Ran android update sdk --no-ui --all
Tried running buildozer android deploy and got the following error:

# Check that aidl can be executed
# Search for Aidl
# Run '/home/fico/.buildozer/android/platform/android-sdk-23/build-tools/23.0.1/aidl'
# Cwd None
# Aidl cannot be executed
# 
# You might have missed to install 32bits libs
# Check http://buildozer.readthedocs.org/en/latest/installation.html
# 
# Check configuration tokens

buildozer.log

buildozer.spec

@vshantam
Copy link

vshantam commented Jul 28, 2017

you can not run buildozer as a root .i was having the same problem then i created a non root user and ran buildozer application and it worked perfectly fine .if you still faces the same problem you might not have the 32bit library as i can see you are yousing 64bit version and the application is 32 bit so please install 32bit libs.using command.

1:>sudo apt-get install libpangox-1.0-0:i386 libpangoxft-1.0-0:i386
2:>sudo apt-get install lib32z1

that will do the trick.

@KhishorekumarBS
Copy link

I got the same error and ran these commands,

  • sudo pip install --upgrade cython==0.21
  • sudo dpkg --add-architecture i386
  • sudo apt-get update
  • sudo apt-get install build-essential ccache git libncurses5:i386 libstdc++6:i386 libgtk2.0-0:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 python2.7 python2.7-dev openjdk-8-jdk unzip zlib1g-dev zlib1g:i386

But still I'm getting the same error.
Please help

@oriolpiera
Copy link

I got the same error with Android SDK Build-tools 19.1. I updated to version 27.0.3, and no 32bits libs required.

So, update de Android SDK Built-tools and the problem will be solved.

@uxmatthew
Copy link

Getting this same thing. Tried several versions of sdk and of build tools. Still not working.

@cplager
Copy link

cplager commented Apr 12, 2018

I, too, have the same problem and am running Ubuntu on Windows 10 (and installing the packages as KhishorekumarBS did above changed nothing for me either).

log.txt

buildozer.spec.txt

@cplager
Copy link

cplager commented Apr 14, 2018

O.k. Looking here

`mkdir -p build-tools/0

ln -s /usr/bin/aidl ~/.buildozer/android/platform/android-sdk-20/build-tools/0/aidl`

Works for me.

Now I've got the problem that no matter what I do, it claims I don't have any SDKs installed:

` Android packages installation done.

Check application requirements

Check garden requirements

Compile platform

Run '/usr/bin/python2.7 -m pythonforandroid.toolchain create --dist_name=mathtest --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storagedir=/home/cplager/WindowsPython/build/.buildozer/android/platform/build'
Cwd /home/cplager/WindowsPython/build/.buildozer/android/platform/python-for-android-new-toolchain

[INFO]: Will compile for the following archs: armeabi-v7a

[INFO]: Found Android API target in $ANDROIDAPI

[INFO]: Available Android APIs are ()

WARNING: Requested API target 20 is not available, install it with the SDK android tool.

@ImtiyazKhan117
Copy link

ImtiyazKhan117 commented Jul 8, 2018

i am dealing with same problem from today morning before yesterday everything was fine with my buildozer :(
but now i refactor my project and now its working i simply copy past my project file into another folder
run buildozer android clean
and then
buildozer android debug deploy
its working for me

@fl118543
Copy link

I fixed the aidl problem by installing the 32bits version of the C++ library.
# sudo apt-get install lib32stdc++6
Maybe you could try it.

Hope this help,
Francois

@inclement
Copy link
Member

Closing as stale, please reopen if this is still an issue.

@ulist
Copy link

ulist commented Feb 6, 2019

Close the issue is all you want 🐸

@SCORPIA-oss
Copy link

sudo apt-get install lib32stdc++6 not working!

@tshirtman
Copy link
Member

do you have all the dependencies documented there?
https://buildozer.readthedocs.io/en/latest/installation.html#android-on-ubuntu-18-04-64bit

i'm pretty sure it's about everything that is needed, if not that list needs to be completed.

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