我正在使用Flutter团队提供的最新版本。连接性:^ 0.4.6 + 1 迁移到AndroidX支持后仍然面临此问题。
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'connectivity'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* 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 1s
The plugin connectivity could not be built due to the issue above.
答案 0 :(得分:0)
更新到最新的连接插件,flutter clean
有所帮助。 ios现在有一个问题,虽然有点不同,但是会为它创建一个新线程。