Building Love 11.1 on Android

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Building Love 11.1 on Android

Post by xNick1 »

Hi,
I followed the instructions on the repo.
I made a folder containing:

"love-android-sdl2" cloned from the repo: (git clone https://bitbucket.org/MartinFelis/love-android-sdl2),
"android-ndk-r14b" (x86_64 version),
"tools" (sdk-tools-windows-4333796),
"local.properties" it contains "ndk.dir="C:\Users\[...]\android-ndk-r14b" sdk.dir="C:\[...]\tools"

I also installed Java8 and set the JAVA_HOME environment variable and copied the game.love file in love-android-sdl2/app/src/main/assets/game.love

I launched gradlew.bat from cmd and it says:

* What went wrong:
A problem occurred configuring root project 'love-android-sdl2'.
> Could not resolve all files for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:3.0.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android ... -3.0.1.pom
https://jcenter.bintray.com/com/android ... -3.0.1.jar
Required by:
project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

* Get more help at https://help.gradle.org

Any help on building it?

It looks like it's trying to look for the files on that url, but I don't know how to change the url it's looking for and what to change it with

EDIT: Solved by adding the google repo in build.gradle (google())
Then it couldn't find the android sdk and I solved it by adding an environment variable.
I still have some errors
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 44 guests