React-native-device-info: [ANDROID] Error after upgrading react native to v0.47

Created on 21 Aug 2017  路  3Comments  路  Source: react-native-device-info/react-native-device-info

Hi guys, I am getting this error trying to run my APP in android.

.../node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceInfo.java Error:(26, 3) error: method does not override or implement a method from a supertype

I am using:

"react-native": "0.47.1",
"react-native-device-info": "^0.10.2"

Also, I had this error with other packages but I solved it by upgrading them to the latest versions.

Any ideas?

Thank you.

Most helpful comment

Actually it was fixed on v0.11.0.

All 3 comments

Hello there,

This error comes from the 0.47 version of React-Native, where the createJSModule() method has been deprecated (see https://github.com/facebook/react-native/releases/tag/v0.47.0).

The react-native-device-info hasn't been updated yet, so meanwhile you can just safely remove the method from your RNDeviceInfo.js file in the node_module.

Hope it helps !

Actually it was fixed on v0.11.0.

fixed on latest version

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lslvxy picture lslvxy  路  5Comments

jmunozDevsu picture jmunozDevsu  路  4Comments

BBBOND picture BBBOND  路  4Comments

Ken-Lim picture Ken-Lim  路  5Comments

NemanjaManot picture NemanjaManot  路  4Comments