Note: Due to an upstream bug, you will probably receive a warning (or multiple warnings if building for multiple targets) like this:
error: warning(link): unexpected LLD stderr:
ld.lld: warning: <path-to-project>/.zig-cache/o/4227869d730f094811a7cdaaab535797/libraylib.a: archive member '<path-to-ndk>/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/x86_64-linux-android/35/libGLESv2.so' is neither ET_REL nor LLVM bitcode
You can ignore this error for now.
zig build run # Native
zig build run -Dandroid # Androidzig build -Dtarget=x86_64-linux-android
adb install -r ./zig-out/bin/raylib.apk
adb shell am start -S -W -n com.zig.raylib/android.app.NativeActivityzig build -Dandroid
adb install -r ./zig-out/bin/raylib.apkIf installing your application fails with something like:
adb: failed to install ./zig-out/bin/raylib.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Existing package com.zig.raylib signatures do not match newer version; ignoring!]
adb uninstall "com.zig.raylib"Powershell (app doesn't need to be running)
adb logcat | Select-String com.zig.raylib:Bash (app doesn't need running to be running)
adb logcat com.zig.raylib:D *:SBash (app must be running, logs everything by the process including modules)
adb logcat --pid=`adb shell pidof -s com.zig.raylib`