Domi04151309 / HomeApp

HomeApp is a small and easy to use smart home app with a simple framework.
https://f-droid.org/packages/io.github.domi04151309.home/
GNU General Public License v3.0
106 stars 24 forks source link

Wrong gradle version #67

Closed cweiske closed 2 years ago

cweiske commented 2 years ago

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 commented 2 years ago

Should be fixed now