這是向我顯示的錯誤
你好我正在正常使用我的應用程式然后當我決定再次運行它時它向我顯示了這個錯誤我嘗試了互聯網上的所有解決方案但它沒有解決我的問題
Launching lib\main.dart on SM N976N in debug mode...
FAILURE: Build failed with an exception.
* Where:
Script 'D:\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'D:\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* 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 25s
Running Gradle task 'assembleDebug'... 29,9s
Exception: Gradle task assembleDebug failed with exit code 1
這是我的 pubspec.yaml
name: flutter_ui
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0 1
environment:
sdk: '>=2.18.2 <3.0.0'
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
syncfusion_flutter_datepicker: ^20.3.48
simple_animations: ^5.0.0 2
firebase_auth: ^3.11.2
cloud_firestore: ^3.5.1
firebase_core: ^1.24.0
flutter_svg: ^1.1.5
curved_navigation_bar: ^1.0.3
barcode_widget: ^2.0.1
flutter_qr_bar_scanner: ^3.0.2
flutter_cache_manager: ^3.3.0
firebase_database: ^9.1.7
firebase_storage: ^10.3.11
qr_flutter: ^4.0.0
path_provider: ^2.0.11
path_provider_ios: ^2.0.11
path_provider_android: ^2.0.20
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
# The following section is specific to Flutter packages.
flutter:
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- images/
# - images/a_dot_ham.jpeg
fonts:
- family: Poppins
fonts:
- asset: fonts/Poppins-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
我不知道問題出在哪里我嘗試了所有解決方案但沒有任何結果
uj5u.com熱心網友回復:
請詳細說明你的問題。先分享一下pubspec.yml的錯誤截圖或者截圖。如果沒有轉到您的 IDE 上的終端并使用:
撲干凈
撲吧酒吧
顫振酒吧升級
并重建應用程式。如果問題仍然存在,請告訴我。
uj5u.com熱心網友回復:
這是顯示的錯誤
name: flutter_ui
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0 1
environment:
sdk: '>=2.18.2 <3.0.0'
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
syncfusion_flutter_datepicker: ^20.3.48
simple_animations: ^5.0.0 2
firebase_auth: ^3.11.2
cloud_firestore: ^3.5.1
firebase_core: ^1.24.0
flutter_svg: ^1.1.5
curved_navigation_bar: ^1.0.3
barcode_widget: ^2.0.1
flutter_qr_bar_scanner: ^3.0.2
flutter_cache_manager: ^3.3.0
firebase_database: ^9.1.7
firebase_storage: ^10.3.11
qr_flutter: ^4.0.0
path_provider: ^2.0.11
path_provider_ios: ^2.0.11
path_provider_android: ^2.0.20
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
# The following section is specific to Flutter packages.
flutter:
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- images/
# - images/a_dot_ham.jpeg
fonts:
- family: Poppins
fonts:
- asset: fonts/Poppins-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
uj5u.com熱心網友回復:
首先,運行這個命令also flutter pub upgrade --major-versions
build\app\outputs\flutter-apk\app-debug.apk重建應用程式后嘗試洗掉此路徑中的除錯應用程式
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/516838.html
標籤:Google Cloud Collective 安卓扑火力基地毕业典礼谷歌云火库
上一篇:查找兩列的每個組合的MAX值
下一篇:獲取每組中第一行的串列
