Category: React Native Device Info
undefined is not object (evaluating ‘RNDeviceInfo.deviceId’)
var DeviceInfo = require(‘react-native-device-info’); console.log(DeviceInfo.getDeviceId()); Android 5.1
Android error BluetoothAdapter.getName() on a null object reference
/BluetoothAdapter( 3513): Bluetooth binder is null W/System.err( 3513): java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String android.bluetooth.BluetoothAdapter.getName()’ on a null object reference W/System.err( 3513): at com.learnium.RNDeviceInfo.RNDeviceModule.getConstants(RNDeviceModule.java:75)…
Failed on android with com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzpq;
On Android gradles build process gives the following exception: Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION: Unknown source file : com.android.dex.DexException: Multiple dex files define…
Please don’t pin your play-services dependency at a particular version
It causes issues with other libs when a 3rd-party library, like yours, pins its play-services dependencies at a particular version. eg: Unknown source file :…
C++ Exception in ‘nativeRequireModuleConfig’
I’m getting this error when importing the package: I’m running an Emulator with Android 4.1.1 and using React Native 0.32
Importing on Android (import com.learnium.RNDeviceInfo.RNDeviceInfo) doesn’t work
Followed the setup instructions, but am not able to get it to build. Tested on: an existing project (RN v0.31.0) with npm@3 a new, freshly…
Crash when launch app
FATAL EXCEPTION: main Process: vn.sonice.SoniceApp.Sonice, PID: 28614 java.lang.NoSuchMethodError: No static method zzb(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; in class Lcom/google/android/gms/common/internal/zzab; or its super classes (declaration of ‘com.google.android.gms.common.internal.zzab’ appears in /data/app/vn.sonice.SoniceApp.Sonice-1/base.apk)…
Android causes errors when app uses Firebase
Our CI build broken after adding this. Upon further inspection, it’s a conflict that stems from instanceId using GCM. I would suggest removing instanceId entirely,…