Closed johndanek closed 6 years ago
Sounds like something is in dev for your package.json
that should be in prod.
Though, you should: Comment those reducers out in Sagas index. Can you verify they are not included there?
@GantMan I tried commenting their respective lines out of the root () { yield }
call, and that results in normal successful behavior when running as a dev build. When ./gradlew clean
then build for release, I still get that same exception (with slightly different line numbers) upon startup, instantly crashing the app.
06-28 11:48:24.963 22107-22135/? E/ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)
06-28 11:48:24.963 22107-22136/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
Process: com.teamcoco, PID: 22107
com.facebook.react.common.JavascriptException: undefined is not a function (evaluating '(0,l.combineReducers)({github:r(862).reducer,login:r(863).reducer,search:r(917).reducer})'), stack:
default@703:231
<unknown>@936:662
o@2:565
i@2:348
t@2:210
<unknown>@12:45
o@2:565
i@2:278
t@2:210
global code@1470:9
at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:99)
at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:83)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:368)
at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:138)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
at android.os.Looper.loop(Looper.java:145)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:208)
at java.lang.Thread.run(Thread.java:818)
Here are the dependencies of the package.json:
"dependencies": {
"apisauce": "0.10.0",
"format-json": "1.0.3",
"graphql": "0.10.1",
"graphql-relay": "0.5.1",
"lodash": "4.17.2",
"querystringify": "0.0.4",
"ramda": "0.23.0",
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-animatable": "1.1.1",
"react-native-config": "0.2.1",
"react-native-device-info": "0.10.0",
"react-native-drawer": "2.3.0",
"react-native-fit-image": "1.4.8",
"react-native-i18n": "1.0.0",
"react-native-orientation": "git+https://git@github.com/yamill/react-native-orientation.git",
"react-native-router-flux": "3.39.1",
"react-native-vector-icons": "4.1.1",
"react-native-video": "^1.0.0",
"react-native-video-player": "0.6.1",
"react-navigation": "1.0.0-beta.9",
"react-redux": "5.0.2",
"react-relay": "^1.0.0",
"redux": "3.6.0",
"redux-persist": "4.1.0",
"redux-saga": "0.14.3",
"reduxsauce": "0.4.1",
"seamless-immutable": "7.0.1"
},
"devDependencies": {
"ava": "^0.18.2",
"babel-cli": "^6.14.0",
"babel-core": "^6.13.2",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.5",
"babel-preset-es2015": "^6.18.0",
"babel-plugin-module-resolver": "^3.0.0-beta.0",
"babel-plugin-relay": "^1.0.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-0": "^6.5.0",
"babel-plugin-transform-runtime": "^6.12.0",
"babel-runtime": "^6.11.6",
"enzyme": "^2.6.0",
"express": "^4.15.2",
"express-graphql": "^0.6.4",
"graphql-type-json": "0.1.4",
"ignite-animatable": "^0.3.1",
"ignite-dev-screens": "^2.0.0-beta.8",
"ignite-i18n": "^0.1.1",
"ignite-ir-boilerplate-2016": "^0.2.1",
"ignite-vector-icons": "^0.2.1",
"mockery": "^2.0.0",
"nyc": "^10.1.2",
"react-addons-test-utils": "^15.3.1",
"react-dom": "15.4.0",
"react-native-mock": "0.3.1",
"react-test-renderer": "15.5.4",
"reactotron-apisauce": "1.7.0",
"reactotron-react-native": "1.7.0",
"reactotron-redux": "1.11.2",
"reactotron-redux-saga": "1.11.1",
"relay-compiler": "^1.0.0",
"snazzy": "6.0.0",
"standard": "8.6.0"
},
What is this code involving GitHub avatars? I definitely don't use this in my app, but can't find a way to comment out or remove it all without it causing crashing.
update: the issue also occurs on an iOS device. And I realized that when I said "Though recently, through debugging and cleaning and building, I no longer see this in the Android Studio "Android Monitor" output, but rather the more traditional red React Native error." it was because I changed the android debuggable
flag to true, which replaces crashing with the red React Native error.
@johndanek - are you on our community slack? If so can you ping me on there? I'd love to possibly do a quick screen share.
Also, it looks like (from your code) you still have references to the github example code in index
redux. Not sure why that would only show up in the APK.
@johndanek Not sure if it's related, but I noticed this issue when trying to build a signed APK from within Android Studio. It ended up not packaging the JS bundle. I added Fabric's Crashlytics to the app so I could get a stack trace and found out pretty quickly. yarn android:build worked for me (manually installing via adb install), though android:install looks like it includes that.
I'm also facing this issue. Is there any solution for this ? @GantMan @johndanek
When i run command gradlew assembleRelease then it show's me below error please give me solutions immediately?????/
[Fatal Error] :3:214: The value of attribute "name" associated with an element type "item" must not contain the '<' character.
Could not read C:\Users\gopi\AppData\Local\Android\Sdk\platform-tools\api\annotations.zip
java.io.IOException: Could not parse XML from android/accounts/annotations.xml
at com.android.tools.lint.ExternalAnnotationRepository$AnnotationsDatabase.initializePackage(ExternalAnnotationRepository.java:906)
at com.android.tools.lint.ExternalAnnotationRepository$AnnotationsDatabase.initializeFromJar(ExternalAnnotationRepository.java:849)
at com.android.tools.lint.ExternalAnnotationRepository$AnnotationsDatabase.
I am also facing the same issue. Is there any solution for this? @Gops1994 @codesinghanoop
problem solve after update my gradle version 4.6 latest and also update android project latest @kumarsathishc
FYI My "solution" was to create a blank React Native project without Ignite and start over from scratch :-/
Same issue..
Same issue here as well.
Can you folks open new issues with details on the specific errors you're getting and other related info?
Just for completeness it's a problem in the android build tools. See this issue https://issuetracker.google.com/issues/116182838
Same issue here
2019-01-14 09:56:12.981 13279-13302/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
Process: com.astrosupply1, PID: 13279
java.lang.SecurityException: Looks like the app doesn't have the permission to access location.
Add the following line to your app's AndroidManifest.xml:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
at com.facebook.react.modules.location.LocationModule.throwLocationPermissionMissing(LocationModule.java:234)
at com.facebook.react.modules.location.LocationModule.startObserving(LocationModule.java:173)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loop(Looper.java:164)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
at android.os.Parcel.readException(Parcel.java:2004)
at android.os.Parcel.readException(Parcel.java:1950)
at android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationManager.java:691)
at android.location.LocationManager.requestLocationUpdates(LocationManager.java:888)
at android.location.LocationManager.requestLocationUpdates(LocationManager.java:470)
at com.facebook.react.modules.location.LocationModule.startObserving
It seems the View is not asking for permissions, however in the development mode it did.
Any solution, yet?
@hecmonn Can you open a new issue with a minimal reproducible app published? This issue is quite stale and I don't think the same issue as what you're experiencing.
I'm going to lock this thread; please open new issues with minimal repros so it's easier for us to debug.
Thank you!
Hey there! Ignite CLI seems to be having a problem, eh?
What's going on?
Hello! I filed a ticket in the Redux repository, but as I looked deeper into it, I think it might be more of an Ignite issue. The original Redux issue is https://github.com/reactjs/redux/issues/2477 but I will repost below.
The app works fine when I run in dev mode connecting to my local React Native JS bundle server. But, when I do an
npm run android:install
to make a signed APK and install, this new version dies immediately. The error is:Though recently, through debugging and cleaning and building, I no longer see this in the Android Studio "Android Monitor" output, but rather the more traditional red React Native error. This is new since I filed the ticket in the Redux repo. Any advice for how to get a signed APK running on a hardware device is greatly appreciated.
How can I disable the github, login, and search reducers? I tried commenting them out in App/redux/index.js (I had to change the redux folder to lowercase to get around a build crash).
Steps to reproduce Created a signed APK release and install on Android hardware device. Attempt to launch.
ignite doctor
results: