Cannot Compile Libgdx Games For Android !

Anything libgdx related goes here!

Cannot Compile Libgdx Games For Android !

Postby tommiller » Wed Jul 11, 2018 10:16 pm

Hello,

I'm using Eclipse for compiling for desktop and it works. Since ADT plugin and Eclipes are no longer supported by Android, I want to use Android Studio. I actually just use Desktop version for easy testing and want to compile for Android only.

When I try to compile my game for android using Android Studio 3.1.3 it gives this error and doesn't compile:

The project is using an unsupported version of Gradle.
Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)


I created the project with libgdx setup tool and my gradle-wrapper.properties looks like this:

distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip

I can run my app on Android but cannot create an APK. Need some help.
tommiller
 
Posts: 14
Joined: Sat Jan 20, 2018 6:54 pm

Re: Cannot Compile Libgdx Games For Android !

Postby evilentity » Thu Jul 12, 2018 7:04 am

Pretty sure latest setup uses gradle 4.6, download fresh copy from the site.
Looking for a freelancer? PM me!
evilentity
 
Posts: 4555
Joined: Wed Aug 24, 2011 11:37 am

Re: Cannot Compile Libgdx Games For Android !

Postby thaffa » Fri Jul 13, 2018 2:02 pm

Appears that libgdx android project not support gradle 4.3 (or at least i cant get it to run) so reading some posts in other places i found out
if you change the android gradle version in build.gradle to com.android.tools.build:gradle:2.3.3 works good.
thaffa
 
Posts: 62
Joined: Fri Apr 04, 2014 12:21 am

Re: Cannot Compile Libgdx Games For Android !

Postby tomski » Fri Jul 13, 2018 2:03 pm

Yes it does. Latest setup uses 4.6
tomski
 
Posts: 826
Joined: Wed Jun 26, 2013 6:06 pm

Re: Cannot Compile Libgdx Games For Android !

Postby thaffa » Fri Jul 13, 2018 2:26 pm

tomski wrote:Yes it does. Latest setup uses 4.6

Good to know then, i'll uptade my setup.
thaffa
 
Posts: 62
Joined: Fri Apr 04, 2014 12:21 am


Return to Libgdx

Who is online

Users browsing this forum: Bing [Bot], Zappp and 1 guest