Skip to content

Instantly share code, notes, and snippets.

View hackalog's full-sized avatar

Kjell Wooding hackalog

View GitHub Profile
amy@amy-nix14:~/kivy/drawing_app$ p4a apk --android-api=19 --private $HOME/kivy/drawing_app --package=org.learnleapfly.drawing_app --name "Drawing" --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy
[INFO]: This python-for-android revamp is an experimental alpha release!
[INFO]: It should work (mostly), but you may experience missing features or bugs.
[INFO]: Will compile for the following archs: armeabi
[INFO]: Getting Android API version from user argument
[INFO]: Available Android APIs are (19, 23, 24)
[INFO]: Requested API target 19 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK
[INFO]: Got NDK version from $ANDROIDNDKVER
[INFO]: Using Google NDK r12b
@hackalog
hackalog / gist:84e9b0598bcd983dc41d3d58b2756b8a
Created August 14, 2016 22:52
p4a failure with debug info
[DEBUG]: -compile:
[DEBUG]: [javac] Compiling 23 source files to /home/amy/.local/share/python-for-android/dists/unnamed_dist_1/bin/classes
[DEBUG]: [javac] Note: Some input files use or override a deprecated API.
[DEBUG]: [javac] Note: Recompile with -Xlint:deprecation for details.
[DEBUG]:
[DEBUG]: -post-compile:
[DEBUG]:
[DEBUG]: -obfuscate:
[DEBUG]:
[DEBUG]: -dex:
import kivy
from kivy.app import App
from kivy.lang import Builder
from kivy.logger import Logger
from kivy.properties import ObjectProperty
from kivy.uix.anchorlayout import AnchorLayout
from kivy.core.window import Window
if kivy.platform == 'android':
from jnius import autoclass, PythonJavaClass, java_method