Reputation: 61
I always have this in my Android Studio Windows 10. Every time I build my project and it just throw this.
Execution failed for task ':kruso:transformClassesWithDesugarForDevDebug'.
> com.android.build.api.transform.TransformException: java.io.IOException: Could not delete path 'C:\Users\Admin\Desktop\source_code\android\googleplayapps\Kruso\kruso\build\intermediates\transforms\desugar\dev\debug\0.jar'.
I tried several solutions i can find in stackoverflow but none works as expected. Here are the things I tried:
p/s I'm using a Windows 10 powered by Intel i5-7200U, 12GB RAM, Android Studio 3.1.2
Upvotes: 1
Views: 4152
Reputation: 1565
Simple Close the Android studio goto project Location and delete the folder from File explore, without starting an android studio.
If needed restart system and without starting any other program, goto project location and delete the folder.
Upvotes: 2