Failed to complete Gradle execution cause: org/gradle/Internal/TrueTimeProvider

Deadly 提交于 2019-12-12 03:48:49

问题


I am new to Android and while I am building project I am getting this type of error:

Failed to complete Gradle execution cause: org/gradle/Internal/TrueTimeProvider

I searched a lot through Google and Stack Overflow but no help.


回答1:


Try performing a clean build from build->clean project




回答2:


Download any gradle of version greater than 3.2 link : https://services.gradle.org/distributions/

Extract it and save it in a suitable place in your computer. Open android studio and open settings.

File->Settings->Build,Execution,Deployment->Gradle

on the right side choose or select Use local gradle distribution and then browse to where you had saved your downloaded extracted gradle click apply, then ok.

Don't forget to invalidate cache if you have some trouble using File -> Invalidate Cache / Restart




回答3:


For me was fixed removing this from my app build.gradle:

buildtimetracker {
    reporters {
        csv {
            output "build/times.csv"
            append true
            header false
        }

        summary {
            ordered false
            threshold 50
            barstyle "unicode"
        }

        csvSummary {
            csv "build/times.csv"
        }
    }
}

and this

classpath "net.rdrei.android.buildtimetracker:gradle-plugin:0.8.0"


来源:https://stackoverflow.com/questions/42968399/failed-to-complete-gradle-execution-cause-org-gradle-internal-truetimeprovider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!