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

x86 apk support on buildozer #11

Closed
amitkot opened this issue Apr 25, 2013 · 3 comments
Closed

x86 apk support on buildozer #11

amitkot opened this issue Apr 25, 2013 · 3 comments

Comments

@amitkot
Copy link

amitkot commented Apr 25, 2013

I created an APK using python-for-android and tried running it on an x86 emulator.
It crashed with the following error:

E/AndroidRuntime( 1707): java.lang.UnsatisfiedLinkError: Couldn't load sdl from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.amitkot.pong-1.apk,libraryPath=/data/app-lib/com.amitkot.pong-1]: findLibrary returned null

Talking on the IRC channel, it seems the APK wasn't supposed to have code for x86 devices. As these devices will (probably) become more common, supporting them could be very helpful.

@tito
Copy link
Member

tito commented Apr 21, 2014

It is not a issue with buildozer, but with the toolchain behind. Python-for-android doesn't support x86 compilation yet, but some users did it. (They didn't provided any contribution yet :()

@tito tito closed this as completed Apr 21, 2014
@mraygalaxy
Copy link

I'm having this exact problem on ARMv7, not x86.

https://groups.google.com/forum/#!topic/kivy-users/TMbykeomRcw

What exactly is causing the problem? Or how to I debug it? I'm willing to provide any information I can......

@mraygalaxy
Copy link

For the googlers out there, the solution was not to use the ARMv7 libraries at all (don't even set them in the buildozer.spec file). If you have both v7 and non-v7 libraries from something you're trying to include in your application, try to include only the non-v7 versions and ensure that there are no libraries included in the armeabi-v7a from .buildozer/platform/python-for-android/dist/myapp/libs/armeabi-v7a.

If you have libraries in the v7 directory, the phone will attempt to use them if you actually have a v7 phone. If the folder is empty, the phone will try to use the non-v7 version, which is where the sdl libraries (among others) are actually located.

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

3 participants