Run-android-react-random, not accidentally deleted or creating a folder

I start on Windows 10:

Permission to access the folder "All" and "Full access".

The Cmd line is set to "Administrator".

- response-native-cli version: 2.0.1

- response-native version: 0.47.2

* What went wrong:
Execution failed for task ':@myApp/react-native-spinkit:mergeReleaseResources'.
> java.io.IOException: Could not delete path 'C:\Users\My\Desktop\App\node_modules\@myApp
\react-native-spinkit\android\build\intermediates\res\merged\release\drawable-xhdpi-v4'.

For example, I will get the error above. Sometimes he says that he cannot delete some intermediate path, sometimes he says that he cannot create them.

This is not a fixed error output, intermediate folders that get into the problem are different every time. When I repeat React-native run-androidon good days 2-3 times, it will compile successfully. On bad days, I will repeat cmd 10-15 times, then it suddenly works.

By the way, I use the command android/gradlew cleanto make sure that it clears too.

, , , , , % . , 100%, .

Mac, Android, Mac . Windows. - , ? -, , ?

+4
2

: : : app: processDebugResources. > java.io.IOException: "" -

/build .

, . , . "clean" ( "target" ), .

+3

- ? , Windows . , Windows.

0

Source: https://habr.com/ru/post/1687603/


All Articles