Connectivity插件无法为Flutter应用程序构建

问题描述 投票:1回答:1

我正在使用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.
android flutter plugins connectivity
1个回答
0
投票

更新到最新的连通性插件,flutter clean提供了帮助。现在有一个与ios不同的问题,但会为此创建一个新线程。

© www.soinside.com 2019 - 2024. All rights reserved.