我正在使用安卓开发工具2.4版本,并且遇到了这个错误。 显然我需要更新我的安卓插件,但是当我检查jcenter以获取新版本时,唯一可用的版本是 2.5.0-alpha-preview-02 ,它会导致完全相同的错误。我还在错误消息中看到某处提到必须替换ANDROID_DAILY_OVERRIDE
环境变量。但我真的不知道应该把这个环境变量放在哪里? 是放在local.properties文件中还是操作系统环境变量中?我想知道是否有其他人也面临着这个问题。
这是完整的错误消息。
Error:(1, 0) The android gradle plugin version 2.5.0-alpha-preview-02 is too old, please update to the latest version.
To override this check from the command line please set the ANDROID_DAILY_OVERRIDE environment variable to "8d256f619ba96afd1273947e8b8bebea4cb2fd05"
<a href="fixGradleElements">Upgrade plugin to version 2.4.0-alpha7 and sync project</a><br><a
href="openFile:C:/Users/hshahdoost/MyWork/BAmooz/Android/build.gradle">Open File</a>