the first time I run 'react-native run-android', I got this error:

Viewed 1299

This is the error log:

 Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: **AAPT process not ready to receive commands**
    :app:mergeDebugResources FAILED
3 Answers

My problem, on Linux, was the path:

I export ANDROID_HOME with .bash_profile but I forgive to reload it in my terminal with . ~/.bash_profile before open android studio.

Step by step:

  1. Close Android Studio.

  2. Reload bash profile . ~/.bash_profile or export path:

    export ANDROID_HOME=$HOME/Android/Sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/platform-tools

  3. Open Android Studio.

  4. Run device. I try with a Nexus 4 but it doesn't matters. Use API 23 X86_64 (Google APIs) like tutorial says.

  5. Go to your project in terminal and execute react-native run-android.

It works!!

Related