-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App can not compile #395
Comments
Issue : Android Platform I had followed the installation guide form React Native Orientation, and had the error:
Dependencies "react-native-orientation": "^3.1.3", "react-native": "^0.64.0", Solution Two changes to consider on point three of the guide: 3. Register module in
Code Slution
Gradle Make sure to clear your gradle caches Additional NOTE: I unlinked or skipped |
Hi Team, Check the getPackages() method in MainApplication.java, it might be that module is being created twice. If this was your intention, set canOverrideExistingModule=true. This error may also be present if the package is present only once in getPackages() but is also automatically added later during build time by autolinking. Try removing the existing entry and rebuild. |
After installing and running my app I am getting:
Native module Orientation tried to override OrientationModule. Check the getPackages() method in MainApplication.java, it might be that module is being created twice. If this was your intention, set canOverrideExistingModule=true. This error may also be present if the package is present only once in getPackages() but is also automatically added later during build time by autolinking. Try removing the existing entry and rebuild
I am using
"dependencies": {
"react": "16.13.1",
"react-native": "0.63.4",
"react-native-orientation": "^3.1.3",
"react-native-sensors": "^7.2.0",
"rxjs": "^6.6.6"
},
The text was updated successfully, but these errors were encountered: