Flutter:调试构建成功,但发布给出了错误

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

将flutter更新为1.12.13 + hotfix.8之后,Flutter在发行版本中给出了奇怪的错误,但是在调试版本中工作得很好]

错误

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'intent'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or 
by setting the sdk.dir path in your project's local properties file at 
'/Users/niyantras/tools/flutter/.pub-cache/hosted/pub.dartlang.org/intent- 
1.1.0/android/local.properties'.

* 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

Flutter医生:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76, locale en-GB)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.42.0)
[✓] Connected device (1 available)

• No issues found! 

有人可以帮我弄清楚,谢谢您的帮助。

将flutter更新到1.12.13 + hotfix.8之后,Flutter在发行版本上给出了奇怪的错误,但是在调试版本上运行得很好。Error:FAILURE:构建失败,并带有异常。 *发生了什么...

flutter dart visual-studio-code flutter-dependencies
1个回答
0
投票

扑通干净

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