-
Notifications
You must be signed in to change notification settings - Fork 24
Configuring Kivy p4a on macOS
Feodor Fitsner edited this page Jul 3, 2023
·
9 revisions
Install NDK from https://developer.android.com/ndk/downloads/ or with Android SDK Manager.
Install Temurin8:
brew install --cask temurin8
export JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home
Create new Python virtual environment:
python3 -m venv .venv
source .venv/bin/activate
Install p4a:
pip install python-for-android
Install Cython:
pip install --upgrade Cython
Run p4a:
p4a create --requirements python3 --arch arm64-v8a --sdk-dir $HOME/Library/Android/sdk --ndk-dir $HOME/Library/Android/sdk/ndk/25.2.9519653
Choose No to "Do you want automatically install prerequisite JDK? [y/N]".