Debug School

rakesh kumar
rakesh kumar

Posted on • Edited on

React Native Error Checklist

Error 1:app:installDebug FAILED

Solution

Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

Configure project :react-native-reanimated
Android gradle plugin: 8.8.2
Gradle: 8.13
Task :app:installDebug FAILED
Skipping device 'emulator-5554' (emulator-5554): Device is OFFLINE.

============================================================================
git bash terminal 1:npx react-native start --reset-cache
gitbash terminal-2:npx react-native run-android

2nd METHOD

wipe AVD OR DELETE and create new avd from android studio then follow below 2 step
1.C:\Users\rakes\AppData\Local\Android\Sdk\emulator>emulator -avd Pixel_8_API_34
2.npx react-native run-android

To resolve conflicting dependencies in your project, follow these steps

In this order install dependency

npx @react-native-community/cli init Motosharereact
npm install -g @react-native-community/cli
Enter fullscreen mode Exit fullscreen mode
# Install React Native core dependencies
npm install react react-native

# Install navigation libraries
npm install @react-navigation/native @react-navigation/stack @react-navigation/drawer @react-navigation/bottom-tabs

# Install gesture handler and other navigation dependencies
npm install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context

# Install other libraries
npm install @react-native-async-storage/async-storage @react-native-community/masked-view axios react-native-paper react-native-picker-select react-native-share

npm install redux react-redux
npm install redux @reduxjs/toolkit
npm install react-native-document-picker
Enter fullscreen mode Exit fullscreen mode

How to start to react native app

npx react-native run-android
============or===========
C:\Users\rakes\AppData\Local\Android\Sdk\emulator>emulator -avd Pixel_8_API_34
npx react-native run-android
Enter fullscreen mode Exit fullscreen mode

Another way to start to react native app

git bash terminal 1:npx react-native start --reset-cache 
gitbash terminal-2:npx react-native run-android
Enter fullscreen mode Exit fullscreen mode

How to install icons

npm install react-native-vector-icons --save
Open android/app/build.gradle
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
npx react-native run-android
Enter fullscreen mode Exit fullscreen mode

Image description

Image description

Image description

Error 2

 Task :react-native-async-storage_async-storage:compileDebugJavaWithJavac
Task :react-native-document-picker:compileDebugJavaWithJavac FAILED
Enter fullscreen mode Exit fullscreen mode

Posiible solution

npm install @react-native-async-storage/async-storage@latest
npm install react-native-document-picker@latest
Enter fullscreen mode Exit fullscreen mode

Refrences

google autocomplete places

google console setup

Error 4

Task :react-native-document-picker:compileDebugJavaWithJavac FAILED
Enter fullscreen mode Exit fullscreen mode

Solution

Uninstall package for corresponding error

npm uninstall react-native-document-picker
Enter fullscreen mode Exit fullscreen mode

Method2

  1. Manual Patch Required While you've updated the libraries, their latest npm releases might not yet include the required namespace migration. For both libraries (@react-native-async-storage/async-storage and react-native-document-picker):

Step 1: Remove the package="..." attribute from their AndroidManifest.xml files:

node_modules/@react-native-async-storage/async-storage/android/src/main/AndroidManifest.xml

node_modules/react-native-document-picker/android/src/main/AndroidManifest.xml
Enter fullscreen mode Exit fullscreen mode

Step 2: Add the namespace to their build.gradle files:

android {
    namespace 'com.reactnativecommunity.asyncstorage' // For async-storage
    // OR
    namespace 'com.reactnativedocumentpicker' // For document-picker
}
Enter fullscreen mode Exit fullscreen mode
  1. Automate with Patch-Package To avoid manual fixes after every npm install:
npx patch-package @react-native-async-storage/async-storage
npx patch-package react-native-document-picker
Enter fullscreen mode Exit fullscreen mode

Ensure your package.json includes:

"scripts": {
  "postinstall": "patch-package"
}
Enter fullscreen mode Exit fullscreen mode
  1. Verify Library Versions Confirm you’re using minimum compatible versions:
@react-native-async-storage/async-storage@^1.19.0

react-native-document-picker@^9.1.0
Enter fullscreen mode Exit fullscreen mode

If issues persist, check for GitHub forks or community patches (e.g., some libraries have open PRs addressing this).

  1. Clean Build Artifacts
cd android
./gradlew clean
cd ..
npx react-native run-android
Enter fullscreen mode Exit fullscreen mode

Why This Happens: Some libraries haven’t fully migrated to Gradle’s namespace syntax despite version updates. Manual intervention is often required until maintainers release official fixes

Top comments (0)