在Mac OS上构建失败,而不是在Windows Flutter上



我刚转移到Mac设备,和一个可以在Windows 10上运行的flutter项目,但当我试图在Macbook上运行时,

调试控制台显示如下错误,please help, thank you.

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: G:\2. KoffieSoft\Referensi\fix\Operasional\mjw_operasional\android\app\build\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 4s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

KoffieSoft→这在windows上没问题,但在mac上有问题。不要在文件夹名称上使用空格字符。您可以使用_2 _koffiesoft

谢谢你,我已经找到解决办法了。解决方案我寻找一个名为G:2的文件。KoffieSoft参考 解决 android操作 mjw_operational app 制造中间体颤振 flutter_assets AssetManifest调试。在android文件中的json之后,我删除了该文件,我flutter clean =>Flutter pub get =>运行,错误不再出现,我的项目可以在mac上运行,

最新更新