连接插件无法为 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.

更新到最新的连接插件和flutter clean有所帮助。 现在iOS有一个问题,它有点不同,但会为相同的线程创建一个新线程。

最新更新