Home > Blockchain >  the project flutter can be run on windows but on mac there is an error
the project flutter can be run on windows but on mac there is an error

Time:05-16

I just moved to a mac device, and I have a question. I have a project that can run on Windows 10, but when I try to go to the Macbook, the debug console displays an error like this, 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)

CodePudding user response:

2. KoffieSoft -> This is okey for windows but problem on mac. Do not use space char on your folder names. You can use _ like 2_KoffieSoft

CodePudding user response:

Thank you sir, I have found the solution. the solution I look for a file named G:\2. KoffieSoft\Reference\fix\Operational\mjw_operational\android\app\build\intermediates\flutter\debug\flutter_assets\AssetManifest.json in the android file after that I deleted the file and I flutter clean => flutter pub get => run, the error no longer appears and my project can be run on a mac,

  • Related