Launching lib\main.dart on RMX2185 in debug mode...
Running Gradle task 'assembleDebug'...
Unhandled exception:
FileSystemException(uri=file:///C:/DESKTOP/spalash/lib/; message=The system cannot find the path specified.
)
#0 _IoFileSystemEntity.readAsBytes (package:front_end/src/api_prototype/standard_file_system.dart:85:57)
#1 FrontendCompiler.invalidateIfInitializingFromDill (package:frontend_server/frontend_server.dart:823:47)
<asynchronous suspension>
#2 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:572:7)
<asynchronous suspension>
#3 starter (package:frontend_server/starter.dart:99:12)
<asynchronous suspension>
#4 main (file:///C:/b/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:13:14)
<asynchronous suspension>
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1157
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* 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 1m 26s
E/AndroidRuntime(20876): FATAL EXCEPTION: EnCodeFileHandlerThread
E/AndroidRuntime(20876): Process: com.oppo.lfeh, PID: 20876
E/AndroidRuntime(20876): java.lang.IllegalArgumentException: Comparison method violates its general contract!
E/AndroidRuntime(20876): at java.util.TimSort.mergeLo(TimSort.java:777)
E/AndroidRuntime(20876): at java.util.TimSort.mergeAt(TimSort.java:514)
E/AndroidRuntime(20876): at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
E/AndroidRuntime(20876): at java.util.TimSort.sort(TimSort.java:254)
E/AndroidRuntime(20876): at java.util.Arrays.sort(Arrays.java:1424)
E/AndroidRuntime(20876): at com.oppo.lfeh.core.OppoFileEncodeHelper.getFileList(OppoFileEncodeHelper.java:627)
E/AndroidRuntime(20876): at com.oppo.lfeh.core.OppoFileEncodeHelper.removeTempFileAndKeepDirSmall(OppoFileEncodeHelper.java:1457)
E/AndroidRuntime(20876): at com.oppo.lfeh.core.OppoFileEncodeHelper.startScanAndEncodeFileReady(OppoFileEncodeHelper.java:1741)
E/AndroidRuntime(20876): at com.oppo.lfeh.core.OppoFileEncodeHelper.access$1200(OppoFileEncodeHelper.java:68)
E/AndroidRuntime(20876): at com.oppo.lfeh.core.OppoFileEncodeHelper$EnCodeFileHandler.handleMessage(OppoFileEncodeHelper.java:2161)
E/AndroidRuntime(20876): at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime(20876): at android.os.Looper.loop(Looper.java:237)
E/AndroidRuntime(20876): at android.os.HandlerThread.run(HandlerThread.java:67)
Exception: Gradle task assembleDebug failed with exit code 1
Doesn’t really sound Gradle related to me.
You should probably ask in some Flutter or Dart or Android community.