Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground doesn't build in latest Android Studio Flamingo #625

Open
phazei opened this issue May 7, 2023 · 3 comments
Open

Playground doesn't build in latest Android Studio Flamingo #625

phazei opened this issue May 7, 2023 · 3 comments

Comments

@phazei
Copy link

phazei commented May 7, 2023

  • [X ] I have searched existing issues and confirmed this is not a duplicate

Issues and steps to reproduce

Install Android Studio Flamingo, choose new project from version control, attempt to build.

Expected behavior

Builds

Version of the flexbox library

3.0.0

Actual Behavior

Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Unsupported Java.
Your build is currently configured to use Java 17.0.6 and Gradle 6.7.1.

Possible solution:

  • Upgrade Gradle wrapper to 7.2 version and re-import the project

Also, does this repo have no more love from google? Is there anyone even looking at this repo from google? So many issues and PR's without a single response from any repo manager for years, sad. @thagikura

@ALEX5402
Copy link

ALEX5402 commented Jul 12, 2023

At first go to your project gradle/wrapper directiory and then gradle-wrapper.properties go to this file into that folder and upgrade the gradle version to 7.4 or higher like

i was using gradle 8.0 so i was using this

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\:https://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

and if you want to use gradle 7.2 then use this

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\:https://services.gradle.org/distributions/gradle-7.2-all.zip

and
if you are you using this kind of build.gradle then change the gradle version 6.7.1 to 7.2.0

buildscript {
    repositories {
        google()
        jcenter()
        
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:6.7.1'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
       
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

after all of that just sync the project

@ayounas02
Copy link

I added these lines in gradle to solve the issue

maven { url 'https://dl.bintray.com/android/android-tools' }

@ALEX5402
Copy link

no sir this won't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants