Execution failed for task ':app:mergeDebugAssets' when running android on Windows

See original GitHub issue

Environment

  1. react-native -v: react-native-cli: 2.0.1 react-native: 0.46.3
  2. node -v: v7.6.0
  3. npm -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:)

  1. open CMD in project root
  2. 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:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Manish12197commented, Jul 2, 2018

I have the same problem

1reaction
WillyRamirezcommented, Feb 24, 2018

I ended up buying a Mac… 😕

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found