• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android Game Import issues

AKIRA IMAKO

Lurker
I am trying to import and android game from github. The game is called pixel hop. I keep getting errors with the gradle saying method does not support target gradle.I am using android studio 3.0.1 but i also have 3.0 canary version. If someone could try and import it as well and let me know how to fix this I will appreciate, thanks in advance.
here's a link to the github project
https://github.com/Purgified/Pixel-Hop
 
Last edited:
I get this error trying to build it

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':android'.
> failed to find Build Tools revision 22.0.1
 
Error:Gradle version 2.2 is required. Current version is 4.1. If using the gradle wrapper, try editing the distributionUrl in C:\Users\name\Desktop\folder1\pixel hop\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip

Consult IDE log for more details (Help | Show Log)

Above is the first Error i got and i did exactly that, changed to to 2.2
and now this is the error im getting


Error:Unsupported method: BaseConfig.getApplicationIdSuffix().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.



ps .I'm a beginner
 
Any ideas on how to fix it ? and as for the video, I watched it and he is not importing the same project thats actually a different one.And I'm stuck on gradle build
 
Yes. Edit your gradle-wrapper.properties file (under Gradle Scripts) and change the line to

Code:
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2-all.zip
 
You'll also need to change the Gradle version dependency in your Pixel Hop build.gradle file. I'm using

Code:
dependencies {
    classpath 'com.android.tools.build:gradle:2.3.2'
}

which seems to work. Well at least I'm getting a successful build now.
 
Back
Top Bottom