question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not read path 'C:\MyApp\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-az-rAZ'.

See original GitHub issue

After generating the icons (which went well with ImageMagick legacy tools option), when running ‘react-native run-android’ I had the following error:

* What went wrong:
Could not read path 'C:\MyApp\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-az-rAZ'.
> C:\MyApp\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-az-rAZ

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


BUILD FAILED

Total time: 7.502 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

(node:3316) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

38reactions
Almourocommented, Jul 31, 2017

Hi @jbarradas ,

Have you tried to run:

cd android && gradlew clean
cd .. && react-native run-android

This can solve some problems on Android 😃

Or if this doesn’t work, you can try to remove the android/app/build folder altogether.

1reaction
kasim444commented, Jun 22, 2020

@ajaykumar97 other solution, delete folder android/app/build

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle Build Fails with "Could not read path" When Instant ...
When i go to that address in explorer i see i can not open the folder and it gives permission error. So i...
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