Datetimepicker: IllegalStateException: Native module TimePicker Android tried to override com.facebook.react.modules.timepicker.TimePickerD

Created on 27 Apr 2020  路  3Comments  路  Source: react-native-datetimepicker/datetimepicker

Bug


When we get upgraded our project to rn-0.62.2 we started getting the below error,

IllegalStateException: Native module TimePicker Android tried to override com.facebook.react.modules.timepicker.TimePickerD

Environment info

react-native info output:

System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
    Memory: 4.11 GB / 15.89 GB
  Binaries:
    Node: 12.16.1 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
  IDEs:
    Android Studio: Version  3.6.0.0 AI-192.7142.36.36.6241897
  Languages:
    Java: Not Found
    Python: 2.7.17 - C:\Python27\python.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.11.0 => 16.11.0
    react-native: 0.62.2 => 0.62.2
  npmGlobalPackages:
    *react-native*: Not Found

Library version: 8.6.0

Steps To Reproduce

  1. Upgraded existing project from rn 0.59.9 to 0.62.2
  2. Ran the project
    ...

Describe what you expected to happen:

Build must be successful.

Most helpful comment

Got the issue.

Culprit was new MainReactPackage() in getPackages() had forgot to remove that.

Thanks for your support @luancurti

All 3 comments

@gokulkulkarni1987 do you have any reproducible demo? Our example is using the 0.62.2 without problems, I suggest you check it

@luancurti it is happening in our company project. Cant share the code, I will check your example once.

Got the issue.

Culprit was new MainReactPackage() in getPackages() had forgot to remove that.

Thanks for your support @luancurti

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mustafaskyer picture mustafaskyer  路  5Comments

otaviogaiao picture otaviogaiao  路  5Comments

ArturDabrowski picture ArturDabrowski  路  3Comments

alxvallejo picture alxvallejo  路  6Comments

inferusvv picture inferusvv  路  4Comments