0

I'm trying to build a repo from GitHub using Android Studio and whenever I try to build it, this message appears:

-Unable to find Gradle tasks to build: [:]. Build mode: REBUILD. Tests: None.
-Multiple Gradle daemons might be spawned because the Gradle JDK and JAVA_HOME locations are different. Project

I tried different versions of Android SDK and Java JDK. I tried to put Java JDK and the project file in the same path, but none of them worked.

Any help in this matter is appreciated.

Dinux
  • 644
  • 1
  • 6
  • 19
  • whats the repo? – Chris May 17 '23 at 09:13
  • a Github repository – user21408341 May 17 '23 at 09:18
  • yes, i got that. If you'd like some help, I could try to clone the repo and try to work out the problem. – Chris May 17 '23 at 09:37
  • https://github.com/hamza372/hamza372-ImageClassificationJavaStarter/tree/main – user21408341 May 17 '23 at 09:40
  • I've cloned the repo. Android studio flagged that the sdk location was invalid and I allowed the known location for my sdk install. Gradle then sync'd and the project built. – Chris May 17 '23 at 11:27
  • thank you, I did so, but now I have this error: Failed to notify dependency resolution listener – user21408341 May 17 '23 at 13:42
  • and this error when I click on run button The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem,Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project. In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes – user21408341 May 17 '23 at 13:50
  • I'd do what it says – Chris May 17 '23 at 13:51
  • @user21408341, You can refer to [this question](https://stackoverflow.com/questions/56192983/android-studio-is-using-this-jdk-location-which-is-different-to-what-gradle) – Henry Letting Jul 05 '23 at 12:40

0 Answers0