The commands "start," "start in container," and "start" are not working in the Windows WSL terminal due to the following error for gradle project.
FAILURE: Build failed with an exception.
What went wrong:
Cannot convert URL 'c:\Users\Administrator\Downloads\app-samplefvt\build.gradle' to a file.
Try:
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Exception is:
org.gradle.api.InvalidUserDataException: Cannot convert URL 'c:\Users\Administrator\Downloads\app-samplefvt\build.gradle' to a file.
at org.gradle.api.internal.file.BasicFileResolver.transform(BasicFileResolver.java:58)
at org.gradle.api.internal.file.BasicFileResolver.transform(BasicFileResolver.java:34)
at org.gradle.initialization.BuildLayoutParametersBuildOptions$BuildFileOption.applyTo(BuildLayoutParametersBuildOptions.java:98)
at org.gradle.initialization.BuildLayoutParametersBuildOptions$BuildFileOption.applyTo(BuildLayoutParametersBuildOptions.java:89)
at org.gradle.internal.buildoption.StringBuildOption.applyFromCommandLine(StringBuildOption.java:60)
at org.gradle.internal.buildoption.BuildOptionSet$1.convert(BuildOptionSet.java:42)
below command is used for execution.
/mnt/c/Users/Administrator/Downloads/app-samplefvt# gradle libertyDev -b="c:\Users\Administrator\Downloads\app-samplefvt\build.gradle"
It seems the issue is caused by an invalid path format in the build.gradle file.
The commands "start," "start in container," and "start" are not working in the Windows WSL terminal due to the following error for gradle project.
FAILURE: Build failed with an exception.
What went wrong: Cannot convert URL 'c:\Users\Administrator\Downloads\app-samplefvt\build.gradle' to a file.
Try:
Exception is: org.gradle.api.InvalidUserDataException: Cannot convert URL 'c:\Users\Administrator\Downloads\app-samplefvt\build.gradle' to a file. at org.gradle.api.internal.file.BasicFileResolver.transform(BasicFileResolver.java:58) at org.gradle.api.internal.file.BasicFileResolver.transform(BasicFileResolver.java:34) at org.gradle.initialization.BuildLayoutParametersBuildOptions$BuildFileOption.applyTo(BuildLayoutParametersBuildOptions.java:98) at org.gradle.initialization.BuildLayoutParametersBuildOptions$BuildFileOption.applyTo(BuildLayoutParametersBuildOptions.java:89) at org.gradle.internal.buildoption.StringBuildOption.applyFromCommandLine(StringBuildOption.java:60) at org.gradle.internal.buildoption.BuildOptionSet$1.convert(BuildOptionSet.java:42)
below command is used for execution. /mnt/c/Users/Administrator/Downloads/app-samplefvt# gradle libertyDev -b="c:\Users\Administrator\Downloads\app-samplefvt\build.gradle" It seems the issue is caused by an invalid path format in the build.gradle file.