Codemagic flutter failed to build android

980 Views Asked by At

Whenever I run it it get stuck in android. This happened to me locally and I solve it doing flutter clean, which I don't know how to do in codemagic. The problem is that is nos building, heres the log.

 Running Gradle task 'assembleDebug'...                          


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: C:\\Users\\thech\\Downloads\\nueva_temporada-20210514T040146Z-001\\nueva_temporada\\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 30s
Running Gradle task 'assembleDebug'...                             31.3s
Gradle task assembleDebug failed with exit code 1


Build failed :|
Failed to build for Android
1

There are 1 best solutions below

1
On

any chance you have hardcoded path in your build.gradle or somewhere else? C:\\Users is not a valid path on Codemagic builder machines because it uses macOS or Linux