Execution Failed For Task ':app:desugardebugfiledependencies'
I'm attempting to run a Flutter application, but keep getting this output in the console: Launching lib/main.dart on Android SDK built for x86 in debug mode... FAILURE: Build fail
Solution 1:
I'm using linux mint,in my case I went to: /home/(username)/Android/Sdk/build-tools/ and delete the folder "28.0.3". Then run the application and android studio reinstall this folder, and the application works correctly without the error mentioned.
Solution 2:
I found that my build-tools/28.0.3/ directory was missing many files, probably from a failed install. I used the SDK manager in android studio to remove 28.0.3 and then reinstalled it and the files are there now.
Solution 3:
Solution 4:
For React Native 0.63.2 I just run the following commands from the root directory
cd android && gradlew clean (for windows) or ./gradlew clean (for other)
Post a Comment for "Execution Failed For Task ':app:desugardebugfiledependencies'"