Not able to generate APK file

47 views
Skip to first unread message

lavanya seetharaman

unread,
Jan 19, 2017, 6:28:03 AM1/19/17
to Kivy users support
Dear Team,

While trying to convert  the simple python code to apk file , am getting below error

# Command failed: ./distribute.sh -l

Even i tried to upgrade the buildozer also .its not work out
Can you please help to resolve this .



VirtualBox_Run_11_01_2017_17_17_12.png

Sumit Madhwani

unread,
Jan 19, 2017, 2:07:23 PM1/19/17
to kivy-...@googlegroups.com
In your buildozer.spec file make sure that `log_level = 2` and then try to run `buildozer android debug logcat > log.txt` and share your log.txt file here.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lavanya seetharaman

unread,
Jan 22, 2017, 4:00:03 AM1/22/17
to kivy-...@googlegroups.com
ear team ,

When am trying again using `log_level = 2` and run `buildozer android debug logcat'

I got below error .please help me to resolve this issue .

Please tell me where I can see the log file ?


*********************************************************************************

Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: y

Installing Archives:
  Preparing to install archives
  Downloading Android SDK Build-tools, revision 25.0.2
  Installing Android SDK Build-tools, revision 25.0.2
    Installed Android SDK Build-tools, revision 25.0.299%)
  Done. 1 package installed.
# Android packages installation done.
# Check application requirements
# Run './distribute.sh -l'
# Cwd /home/kivy/.buildozer/android/platform/python-for-android
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

PYTHON-FOR-ANDROID ERROR! SEE BELOW FOR SOLUTION:

You are trying to run an old version of python-for-android via
distribute.sh. However, python-for-android has been rewritten and no
longer supports the distribute.sh interface.

If you are using buildozer, you should:
- upgrade buildozer to the latest version (at least 0.30)
- delete the .buildozer folder in your app directory (the same directory that has your buildozer.spec)
- run buildozer again as normal

If you are not using buildozer, see
https://github.com/kivy/python-for-android/blob/master/README.md for
instructions on using the new python-for-android
toolchain. Alternatively, you can get the old toolchain from the
'old_toolchain' branch at
https://github.com/kivy/python-for-android/tree/old_toolchain .

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Command failed: ./distribute.sh -l
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
kivy@kivy-VirtualBox:~$


--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/kuPZk50RyOs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Have a Wonderful Day
Regards
Lavanya

Sumit Madhwani

unread,
Jan 22, 2017, 1:06:51 PM1/22/17
to kivy-...@googlegroups.com
well you have got the instructions in your error itself. Just do what it says. Delete the .buildozer directory. The directory will be hidden. After deleting,
1. upgrade your buildozer to latest version `pip install --upgrade buildozer`

2. run `buildozer android debug logcat > log.txt` and your log.txt file will be saved in current directory.
Reply all
Reply to author
Forward
0 new messages