Android compiling?
Posted: Wed Aug 02, 2017 3:20 pm
every time i follow this tutorial:
i get this error :
please, i follow evertything step by step that's exactly what i did.
Code: Select all
Firstly clone the android LÖVE project:
git clone https://bitbucket.org/MartinFelis/love-android-sdl2
Then, download the Android SDK and NDK (currently only compatible with ndk 14b or less). And put a file called local.properties in the root path of project with the content (replacing ... by the local corresponding) :
ndk.dir=...
sdk.dir=...
Put the game (game.love) in the directory (project)/app/src/main/assets (if this directory don't exist create it).
And finally to generate the apk, do:
./gradlew build
To Linux/macOS systems can be necessary run before: chmod +x gradlew
The apk will be in (project)/app/build/outputs/apk/
Code: Select all
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.