How to Request Multiple Permissions for Android in React Native

Android apps need to ask for permission while running. In this blog post, let’s learn how to request multiple permissions at once for Android in react native. The PermissionsAndroid API is used to request permissions in react native. The API has the requestMultiple method that helps to ask for all permissions at once. First of…

‘The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.40 and higher’ React Native Error Fix

I was working on a react native project where I installed watermelonDB for storage purposes. After the installation, I could not run the project on Android emulator because of the following error. The error was related to Kotlin Gradle Plugin. The same issue was raised by someone else on Github and there I found the…

How to Prevent taking Screenshots in React Native App (Android)

Mobile users can take screenshots in any app easily. In some scenarios, you may want to prevent users from taking screenshots inside your app. In this tutorial, let’s check how to prevent screenshots in react native app. Please note that this tutorial works only for Android apps created using react native. Go to YourProject/android/app/src/main/java/com/yourproject/MainActivity and…

How to Fix ‘Expiring Daemon because JVM heap space is exhausted’ React Native Error

When you integrate heavy third-party libraries such as OneSignal, there are chances you face Expiring Daemon because JVM heap space is exhausted error. This error occurs when you try to run your react native project on Android devices. The issue is Android-specific and it’s happening because allocated JVM memory is not enough to build your…

How to do Wireless Debugging in React Native with Android Devices

Usually, we run react native apps on real Android devices using the USB debugging method. The main issue with this method is that you need your device connected through a USB cable all the time. In this blog post, let’s how to debug or run your react native apps over a wireless network (WiFi). First…

You uploaded an APK or Android App Bundle that was signed in debug mode React Native Play Store Issue Fix

One of my Android apps developed using react native app was about to release. I followed every instruction given in the official documentation regarding publishing the android app to PlayStore. But, when I uploaded the generated Android App Bundle file in Google Play Console I got the following error. You uploaded an APK or Android…

Timeout waiting to lock artifact cache. It is currently in use by another Gradle instance. React Native Android Gradle Error Fix

I stumbled upon the following react native issue when I was trying to run one of my react native projects on the Android emulator. Could not resolve all dependencies for configuration ‘:classpath’. > Timeout waiting to lock artifact cache (/home/rashid/.gradle/caches/modules-2). It is currently in use by another Gradle instance. Owner PID: 19520 Our PID: 24483…

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

As I don’t like to open Android Studio always, I prefer to launch Android emulators using terminal. Recently, I got the following error when I tried to start an emulator . emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature. Yes, this is an error related to Android emulator and this…

|

How to Integrate Google Maps in your React Native App (Android)

When coming to location-based maps, you can’t ignore Google Maps. In this blog post, let’s see how to integrate Google Maps in your React Native Android app. We use React Native Maps react native library to add Google Maps. Before that, we need Google developer API to implement maps in your app. Get Google Maps…

Keystore file not found for signing config ‘debug’ React Native Error Fix

Yes, I am back with another react native error. When I cloned one of my react native projects and tried to run it on my Android emulator using react-native run-android . And I got the following error on the terminal: What went wrong:Execution failed for task ‘:app:validateSigningDebug’.> Keystore file ‘YourProject/android/app/debug.keystore’ not found for signing config…