Question

I am currently stuck in deploying an app into into my phone. The app is part of this tutorial. Everything concerning the main.py and buildozer.spec files is set according this tutorial. The app works just fine when run in Eclipse (though some console "errors").

My phone is a Samsung GT-15500, Android version 2.2. and i am also running an apk installer and kivy launcher.

Additionally inside my phone files /mnt/sdcard i cant find a /kivy directory in order to place my app and a simple text file as mentioned here.

Anyway, the thing is that both in the tutorial and the kivy docs the following command: buildozer android debug deploy run fails into my machine. The given error is produced:

    # Android packaging done!
# APK Kivyapp1-1.2.0-debug.apk available in the bin directory
# Run '/home/user/.buildozer/android/platform/android-sdk-21/platform-tools/adb devices'
# Cwd None
/home/user/.buildozer/android/platform/android-sdk-21/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
# Command failed: /home/user/.buildozer/android/platform/android-sdk-21/platform-tools/adb devices

I am suspecting there has something to do with my ADT and SDK tools, configuration etc.

Any suggestions??

Oh and thanks in advance for your time.!

Edit: I am running a Linux Mint 16 distro

Edit2: corrected main.app to main.py and added info about the error.

Was it helpful?

Solution

Everything concerning the main.app

Just to be clear, you mean main.py right?

My phone is a Samsung GT-15500, Android version 2.2. and i am also running an apk installer and kivy launcher.

Have you tried kivy programs in the kivy launcher? Do they work? Phones old enough to use android 2.2 can sometimes have some graphics driver problems or bugs even if they technically meet the kivy requirements.

This wouldn't affect the buildozer compilation though, it's just another thing.

The given error is produced:

Could you set your log_level to 2 in buildozer.spec (the video covers this), run the build again, and paste the full log here. It isn't possible to debug from that single line.

==============

Edit: Okay, it looks like the apk is actually built correctly, and you should be able to find it in the 'bin' subfolder of wherever you ran buildozer. Assuming that's the case, you can try copying it to your phone some other way (email or whatever should work).

The step that's actually failing is the 'deploy' part that should push the apk to your device. I don't know what the error is, and I've never seen buildozer complain about curses before, though I guess you could check that you have curses installed?

My best suggestion is to investigate by navigating to the directory with adb in and playing with it manually. You can look up the commands, like adb install ... to install an apk to your phone - that's what buildozer tries to do.

You should also check that adb is enabled on your phone.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top