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

Wrong gradle version #67

Closed
cweiske opened this issue Jan 11, 2022 · 1 comment
Closed

Wrong gradle version #67

cweiske opened this issue Jan 11, 2022 · 1 comment

Comments

@cweiske
Copy link
Collaborator

cweiske commented Jan 11, 2022

I'm having this problem the 10th time now after resetting my git checkout --hard for #64 , so I post this as a bug.

When trying to build HomeApp with Android Studio 2020.3.1 I get an error:

Build file '/home/cweiske/dev/tools/HomeApp/app/build.gradle' line: 1

A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
   > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
     You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.

The solution is to open File > Settings → Build, Execution, Deployment → Build Tools → Gradle and change "Gradle JDK".

This should be set automatically.

@Domi04151309
Copy link
Owner

Should be fixed now

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

2 participants