Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 940 Bytes

Compilation.md

File metadata and controls

36 lines (23 loc) · 940 Bytes

Compilation instructions

Debug

Compilation of a debug version

python -m buildozer -v android debug

Launch the debug version on a device connected to the computer

python -m buildozer -v android deploy run logcat | grep python

Release

Creation of the app signing key

keytool -genkey -v -keystore ~/keystores/Postrias.keystore -alias Postrias -keyalg RSA -keysize 2048 -validity 10000
keytool -importkeystore -srckeystore ~/keystores/Postrias.keystore -destkeystore ~/keystores/Postrias.keystore -deststoretype pkcs12

Compilation of a release version

export P4A_RELEASE_KEYALIAS="Postrias"
export P4A_RELEASE_KEYSTORE=~/keystores/Postrias.keystore
export P4A_RELEASE_KEYSTORE_PASSWD=
export P4A_RELEASE_KEYALIAS_PASSWD=
python -m buildozer android release

Bug fix

Java Heap Space error

export GRADLE_OPTS="-Xms1724m -Xmx5048m -Dorg.gradle.jvmargs='-Xms1724m -Xmx5048m'"