Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not determine java version from 9.0.1 intellij (windows)

I have a problem with intellij, I can t build my project I have a problem with gradle I think. The error message is : information: Gradle: Executing tasks: [:app:assembleDebig] Error: Android Gradle Build Target: Java.lang.IllegalArgumentException: could not determine java version from '9.0.1'

enter image description here

Thanks for your help

like image 286
Julien Oskorri Gomis Avatar asked Mar 14 '26 18:03

Julien Oskorri Gomis


1 Answers

The problem is that the version string changed from 1.x to 9.x.x
I wasn't able to fix this issue in Intellij by using the Gradle wrapper but you can just specifiy a local Gradle version: enter image description here

enter image description here

Like @Stephen C already mentioned you need at least Gradle 4.2.1

like image 173
Crigges Avatar answered Mar 16 '26 06:03

Crigges



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!