Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error for build in android studio 4.1 with gradle

Tags:

android

gradle

I install the new version of Android Studio but when i want to build my project and sync with gradle this error show. What should i do to fix this error?

gradle setting:(gradle-wrapper.properties)

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

error:

org.gradle.process.internal.JvmOptions.<init>(Lorg/gradle/api/internal/file/FileCollectionFactory;)Vorg.gradle.process.internal.JvmOptions.<init>(Lorg/gradle/api/internal/file/FileCollectionFactory;)V
like image 643
Mohammad YousefiPour Avatar asked Nov 15 '22 03:11

Mohammad YousefiPour


1 Answers

Either You have not set the kotlin version correctly in project level build.gradle

And also change the gradle-6.5-bin.zip to gradle-6.7-all.zip This might work

like image 200
Adarsh Sahu Avatar answered Dec 27 '22 08:12

Adarsh Sahu