尝试在 Flutter 中调试应用程序时显示此错误
Showing this error while trying to debug an App in Flutter
我最近从 windows 切换到 linux,我在其中设置了所有 flutter 东西,但是当我尝试 运行 时,显示此错误航站楼
lib/main.dart:1
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> java.net.URISyntaxException: Illegal character in opaque part at index 2: D:\Documents\FLUTTER\flutter practice\test app 1\login_shared_pref\build\app\intermediates\flutter\debug\flutter_assets\AssetManifest.json
* 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 pub get
并确保
import: 'dart.js';
不存在,如果它删除它
我最近从 windows 切换到 linux,我在其中设置了所有 flutter 东西,但是当我尝试 运行 时,显示此错误航站楼
lib/main.dart:1
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> java.net.URISyntaxException: Illegal character in opaque part at index 2: D:\Documents\FLUTTER\flutter practice\test app 1\login_shared_pref\build\app\intermediates\flutter\debug\flutter_assets\AssetManifest.json
* 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 pub get
并确保
import: 'dart.js';
不存在,如果它删除它