Category: React Native Device Info

Posted in 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

Continue Reading
Posted in React Native Device Info

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)…

Continue Reading
Posted in React Native Device Info

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…

Continue Reading
Posted in React Native Device Info

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 :…

Continue Reading
Posted in React Native Device Info

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

Continue Reading
Posted in React Native Device Info

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…

Continue Reading
Posted in React Native Device Info

React Pod has been deprecated

No description provided.

Continue Reading
Posted in React Native Device Info

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)…

Continue Reading
Posted in React Native Device Info

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,…

Continue Reading
Posted in React Native Device Info

Is it support react-native 0.40?

No description provided.

Continue Reading