Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle Sync Failed - MissingPropertyException after upgrade to gradle 5.1

Just updated to Android Studio 3.3 RC 2 & gradle tools to 5.1, it started to give the following error,

No such property: dir for class: org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection
* What went wrong:
A problem occurred configuring project ':app'.
> groovy.lang.MissingPropertyException: No such property: dir for class: org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection

Any idea what's the solution to this?

I'm using
com.android.tools.build:gradle:3.4.0-alpha08

like image 579
AppeShopper Avatar asked Dec 15 '18 03:12

AppeShopper


1 Answers

The issue with me was related to Jacoco android plugin version 0.1.3 I solved the issue by updating to 0.1.4 and now the issue is solved.

like image 117
Melad Avatar answered Sep 21 '22 16:09

Melad