Execution failed for task ':app:mergeDebugAssets' when running android on Windows
See original GitHub issueEnvironment
react-native -v: react-native-cli: 2.0.1 react-native: 0.46.3node -v: v7.6.0npm -v: npm 4.1.2
Then, specify:
- Target Platform: Android
- Development Operating System: WINDOWS, (works fine on apple)
- Build tools: gradle -> react-native run-android
Steps to Reproduce
(Write your steps here:)
- open CMD in project root
- type: react-native run-android
Expected Behavior
The code is bundles correctly 100% of the times, and the app is launched on the emulator. When in debug JS remotely mode, I am able to reload the app without it crashing on me.
Actual Behavior
50% of the times i try to run-android, i get the following error in CMD. When I run it again, it works. However, when it runs, and then I enter debug js remotley mode i cannot reload the app or the emulator crashes. Every reload i do causes the app to freeze when in debug mode. No error is given.
This happened since i upgraded from 0.44.3 to 0.46.3
react-native run-android:
* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Error: java.nio.file.AccessDeniedException: C:\projects\PROJECTNAME\android\
app\build\intermediates\assets\debug\fonts
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
React-Native Build Failed app:mergeDebugAssets
Try running this inside your project directory: cd android; gradlew clean; cd.. react-native run-android.
Read more >execution failed for task ':app:mergedebugassets'. - You.com
Try running this inside your project directory: cd android; gradlew clean; cd.. react-native run-android. Open side panel.
Read more >error message : Task :app:installDebug FAILED | React Native
reactnative #reactjs # android #reactnativeerrorserror Failed to install the app. Make sure you have an Android emulator running or a device ...
Read more >Different Ways to fix "Execution failed for task ':app:clean ...
Method 1 · Close Android Studio. Then try to manually delete the build files and open Android Studio again. · We need to...
Read more >Execution failed for task ':app:checkDebugAarMetadata' - Reddit
I am getting this error when I run npx react-native run-android info… ... :app:checkDebugAarMetadata FAILED 4 actionable tasks: 4 executed ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same problem
I ended up buying a Mac… 😕