报错信息
* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type FileHasher using BuildSessionScopeServices.createFileSnapshotter().
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 825ms
Finished with error: Gradle task assembleDebug failed with exit code 1
解决方案:直接 用AS 打开Android 项目,然后运行android 项目,根据提示修改错误。(我的错误就是: 一个插件的版本太低 不能获取插件的版本信息)