Errors and Fixes

Package has been Ignored because it contains Invalid Configuration React Native Error Fix

As a react native developer we face many kind of react native errors while developing apps. Sometimes you may come up with a warning in the terminal as given below:warn Package @react-native-community/async-storage has been ignored because it contains invalid configuration. Reason: Cannot find module ‘@react-native-community/async-storage/package.json’ The package name may vary with the third party libraries …

Package has been Ignored because it contains Invalid Configuration React Native Error Fix Read More »

Execution failed for task ‘:app:validateSigningDebug’ React Native Error Fix

I created a new react native project with react native version 0.60.5 and faced a new react native issue when I tried to run the project on my Android emulator. The react native error I faced was Execution failed for task ‘:app:validateSigningDebug’ as given in the screenshot below. As written in the error, I was …

Execution failed for task ‘:app:validateSigningDebug’ React Native Error Fix Read More »

Error: spawnSync ./gradlew EACCES React Native Error Fix

I was trying to run one of my react native projects on the Android emulator and faced the following error. Error: spawnSync ./gradlew EACCES at Object.spawnSync (internal/child_process.js:1041:20) at spawnSync (child_process.js:607:24) at execFileSync (child_process.js:634:15) at runOnAllDevices (/home/rashid/Desktop/React Native/Tomorrow/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:74:39) at buildAndRun (/home/rashid/Desktop/React Native/Tomorrow/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:158:41) at /home/rashid/Desktop/React Native/Tomorrow/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:125:12 at processTicksAndRejections (internal/process/task_queues.js:85:5) at async Command.handleAction (/home/rashid/Desktop/React Native/Tomorrow/node_modules/react-native/node_modules/@react-native-community/cli/build/cliEntry.js:160:7) My PC runs …

Error: spawnSync ./gradlew EACCES React Native Error Fix Read More »

Attempt to invoke virtual method ‘android.graphics.drawable.Drawable React Native Error Fix

Sometimes, your react native project throws unexpected errors for no reasons. You might be building your app without problems yesterday but not today. Yes, react native is just like that. I faced the following react native error while running one of my react native projects. In words, it says Attempt to invoke virtual method ‘android.graphics.drawable.Drawable …

Attempt to invoke virtual method ‘android.graphics.drawable.Drawable React Native Error Fix Read More »

‘ERROR: Running multiple emulators with the same AVD is an experimental feature’ Android Emulator Error Fix

As a react native user, I prefer to run android emulator using the command line. Thus, I can avoid opening Android Studio. Sometimes, I can’t run the emulator as I face the following Android emulator error: emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature. Please use -read-only flag to enable …

‘ERROR: Running multiple emulators with the same AVD is an experimental feature’ Android Emulator Error Fix Read More »

com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives React Native Error Fix

I came across this react native error when I tried to run my react native project with react-native run-android command after adding a third party library which made native changes. Here’s the error which caused the failure of the app build:java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merg ing dex archives: The number of method references in …

com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives React Native Error Fix Read More »

Increased RAM Consumption causing PC Hang React Native 0.60.3 Issue

I created a new react native project with the latest react native version 0.60.3. But while running the project I found that my pc which runs on Ubuntu 18.0.4 got hanged at some point of time. I tried this several times but the result was the same for me. The resulted hang was the direct …

Increased RAM Consumption causing PC Hang React Native 0.60.3 Issue Read More »

ENOTEMPTY: directory not empty React Native Error Fix

When I was trying to add a third party library to my react native project using npm the following error was shown in the terminal. npm ERR! ENOTEMPTY: directory not empty, rmdir ‘/media/rashid/B0305F9E305F6A7C/MyProject/node_modules/.react-native.DELETE/scripts’ As given in the error message it is saying node_modules/.react-native.DELETE/scripts folder is not empty. Hence I navigated to node modules but I …

ENOTEMPTY: directory not empty React Native Error Fix Read More »

Update your React Native Apps to be 64 Bit Compliant by August 1, 2019

If you have react native made Android apps published on Google Play Store then you might have received email from Google Play Store telling to make your app 64 bit compliant. The email you got from Google Play Store starts as given below: Hello Google Play Developer,By August 1, 2019, all apps that use native …

Update your React Native Apps to be 64 Bit Compliant by August 1, 2019 Read More »

Error: spawn vscode ENOENT React Native Issue Fix

I created a new react native (v60.0) project and tried running by using command react-native run-android but faced Error: spawn vscode ENOENT error in the terminal as shown in the screenshot given below. I was running commands through the terminal of my IDE Visual Studio Code. In order to solve this react native issue, I …

Error: spawn vscode ENOENT React Native Issue Fix Read More »

jre/bin/java Access Denied Android Studio Update Conflict Issue Fix in Ubuntu

Yesterday, I created a new react native project with the latest react native version 0.60 and tried to open it in my Android Studio but I got a response saying you can’t open the project with the current version of Android Studio. So, I decided to update my Android Studio to the latest version – …

jre/bin/java Access Denied Android Studio Update Conflict Issue Fix in Ubuntu Read More »

Android APK Build Failed Couldn’t follow Symbolic Link React Native Error Fix

I was trying to build APK file from an old react native project which runs react native version 0.55.4 and the build failed and the following error had shown up in the terminal. FAILURE: Build failed with an exception.What went wrong: Could not list contents of ‘/media/rashid/B0305F9E305F6A7C/MyProject/node_modules/.bin/pbjs’. Couldn’t follow symbolic link. So, how did I …

Android APK Build Failed Couldn’t follow Symbolic Link React Native Error Fix Read More »

How to Migrate Android Support Packages into AndroidX in React Native 0.59

Update: React Native has released new stable version 0.60. It comes with AndroidX support but still, you may need to migrate your native libraries to AndroidX yourself. React Native team also recommends using a tool named Jetifier to patch node modules for a temporary solution. In late 2018, Google started to change Android support library …

How to Migrate Android Support Packages into AndroidX in React Native 0.59 Read More »

HTTP Requests not Working in Android Pie React Native Issue Fix

Android Pie onwards Google has added a new layer of network security which allows only secured https requests and disable http requests by default. But no worries, you can enable http requests by using network security configuration feature. First of all navigate to YourProject > android > app > src > main > res and …

HTTP Requests not Working in Android Pie React Native Issue Fix Read More »