Exception in thread "main" java.lang.RuntimeException: Could not load wrapper properties from
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:60)Caused by: java.net.URISyntaxException: Illegal character in path at index 62:
at java.base/java.net.URI$Parser.fail(Unknown Source) at java.base/java.net.URI$Parser.checkChars(Unknown Source)
at java.base/java.net.URI$Parser.parseHierarchical(Unknown Source) at java.base/java.net.URI$Parser.parse(Unknown Source)
at java.base/java.net.URI.<init>(Unknown So at org.gradle.wrapper.WrapperExecutor.readDistroUrl(WrapperExecutor.java:81) at org.gradle.wrapper.WrapperExecutor.prepareDistributionUri(WrapperExecutor.java:70) at org.gradle.wrapper.WrapperExecutor.<init>(WrapperExecutor.java:57) ... 2 more
Running Gradle task ‘assembleDebug’… 2,141ms
Exception: Gradle task assembleDebug failed with exit code 1
Any thoughts or insight to fix please let me know
I updated the gradle properties and this pops up now. I am new to flutter and I getting the packages from GitHub and try to make the app work
2
Answers
Could you share your
build.gradle
content?The error states that you have:
Illegal character in path at index 62
Could you replace your
gradle-wrapper.properties
with the config below?