Minimum supported Gradle version is 5.4.1. Current version is 4.10.1. If using the gradle wrapper
问题
在Terminal执行gradle build报错,很简单的问题总是忘记怎么解决,这里做个记录。
Caused by: java.lang.RuntimeException: Minimum supported Gradle version is 5.4.1. Current version is 4.10.1. If using the gradle wrapper, try editing the distributionUrl in D:\WorkSpace\eagle-modules\KeyvoxDeliveryLoc
ker\gradle\wrapper\gradle-wrapper.properties to gradle-5.4.1-all.zip
然后配置是肯定没问题的:
distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip
classpath 'com.android.tools.build:gradle:3.5.1'
解决
检查一下你的gradle_home环境变量吧,是不是环境变量引用的不是5.4.1版本