Open mrousavy opened 4 years ago
When I try starting the Android App through commandline instead of Android studio (so running npx react-native run-android
), the same thing happens, but it at least starts the Metro bundler server. The Android app just tries to start but immediately crashes when it tries to load the JS bundle/creating the React context, I don't even get any connection attempts/logs in the metro bundler output.
I had the same issue - I could reach the metro bundle via the emulator/device browser but RN was claiming it couldn't reach it.
Turns out a proxy had been introduced to the codebase which was blocking it on Android but not iOS (https://www.charlesproxy.com/)
I'm having the same problem. Any news?
I was facing the very same problem @mrousavy had. After hours of searching everywhere, I finally found my issue.
I had to remove import com.facebook.react.BuildConfig;
in MainApplication.java
to make yarn android rely on metro dev server instead of index.android.bundle
Hi guys, I am also facing this issue... and I don't have "import com.facebook.react.BuildConfig;" in MainApplication.java I am running app on following versions "react": "17.0.2", "react-native": "0.66.1"
I am also getting the same issue, none of the methods suggested are working :(
Description
On Android I was suddenly unable to get the metro bundler server to work. I've been debugging this for the past 5 hours, and I couldn't find any cause for this issue. So my App won't start at all now.
Whenever I try to run the Android app (I've tried with all kinds of different settings, enabling/disabling Hermes, ABI splits, explicitly forcing an SoLoader version, stripping all kinds of code to get a minimal app, cleaning gradle cache, adding
android:usesCleartextTraffic="true"
to myAndroidManifest.xml
, etc ...), the App starts with a Whitescreen and immediately crashes afterwards. I've managed to find some Exceptions in the Logcat:Some logs which appeared earlier
### Some Permissions logs ``` 2020-08-11 11:33:47.262 2030-2069/? I/PackageManager: Un-granting permission android.permission.MANAGE_DOCUMENTS from package com.google.android.youtube (protectionLevel=262146 flags=0x30dbbe45) 2020-08-11 11:33:47.264 2030-2069/? I/PackageManager: Un-granting permission com.google.android.googleapps.permission.GOOGLE_AUTH from package com.android.providers.calendar (protectionLevel=2 flags=0x30883e45) 2020-08-11 11:33:47.264 2030-2069/? I/PackageManager: Un-granting permission com.google.android.googleapps.permission.GOOGLE_AUTH.cl from package com.android.providers.calendar (protectionLevel=2 flags=0x30883e45) 2020-08-11 11:33:47.264 2030-2069/? I/PackageManager: Un-granting permission android.permission.WRITE_SECURE_SETTINGS from package com.google.android.apps.enterprise.dmagent (protectionLevel=50 flags=0x30083e05) 2020-08-11 11:33:47.264 2030-2069/? I/PackageManager: Un-granting permission android.permission.CONNECTIVITY_INTERNAL from package com.google.android.apps.enterprise.dmagent (protectionLevel=18 flags=0x30083e05) 2020-08-11 11:33:47.265 2030-2069/? I/PackageManager: Un-granting permission android.permission.MANAGE_USB from package com.google.android.apps.enterprise.dmagent (protectionLevel=18 flags=0x30083e05) 2020-08-11 11:33:47.266 2030-2069/? I/PackageManager: Un-granting permission android.permission.CHANGE_COMPONENT_ENABLED_STATE from package com.google.android.apps.enterprise.dmagent (protectionLevel=18 flags=0x30083e05) 2020-08-11 11:33:47.266 2030-2069/? I/PackageManager: Un-granting permission android.permission.MANAGE_CA_CERTIFICATES from package com.google.android.apps.enterprise.dmagent (protectionLevel=18 flags=0x30083e05) 2020-08-11 11:33:47.267 2030-2069/? I/PackageManager: Un-granting permission android.permission.MANAGE_USERS from package com.google.android.apps.enterprise.dmagent (protectionLevel=18 flags=0x30083e05) 2020-08-11 11:33:47.268 2030-2069/? I/PackageManager: Un-granting permission com.google.android.setupwizard.READ_DEVICE_ORIGIN from package com.google.android.apps.messaging (protectionLevel=18 flags=0x38cbbe45) 2020-08-11 11:33:47.269 2030-2069/? I/PackageManager: Un-granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS from package com.android.vending (protectionLevel=2 flags=0x38cabec5) 2020-08-11 11:33:47.270 2030-2069/? I/PackageManager: Un-granting permission android.permission.BIND_WALLPAPER from package com.android.camera2 (protectionLevel=18 flags=0x20d8bc45) 2020-08-11 11:33:47.271 2030-2069/? I/PackageManager: Un-granting permission android.permission.REQUEST_INSTALL_PACKAGES from package com.google.android.gm (protectionLevel=66 flags=0x38cbbe45) 2020-08-11 11:33:47.272 2030-2069/? I/PackageManager: Un-granting permission android.permission.BIND_JOB_SERVICE from package com.google.android.music (protectionLevel=2 flags=0x38cbbe65) 2020-08-11 11:33:47.273 2030-2069/? I/PackageManager: Un-granting permission android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS from package com.google.android.captiveportallogin (protectionLevel=18 flags=0x38c8be45) 2020-08-11 11:33:47.273 2030-2069/? I/PackageManager: Un-granting permission android.permission.NETWORK_BYPASS_PRIVATE_DNS from package com.google.android.captiveportallogin (protectionLevel=2 flags=0x38c8be45) 2020-08-11 11:33:47.273 2030-2069/? I/PackageManager: Un-granting permission android.permission.REQUEST_INSTALL_PACKAGES from package com.google.android.apps.docs (protectionLevel=66 flags=0x38cbbe45) 2020-08-11 11:33:47.274 2030-2069/? I/PackageManager: Un-granting permission android.permission.INTERACT_ACROSS_USERS from package com.google.android.syncadapters.contacts (protectionLevel=50 flags=0x20883e45) 2020-08-11 11:33:47.275 2030-2069/? I/PackageManager: Un-granting permission android.permission.REQUEST_INSTALL_PACKAGES from package com.android.chrome (protectionLevel=66 flags=0xa0cbbe45) 2020-08-11 11:33:47.276 2030-2069/? I/PackageManager: Un-granting permission android.permission.CAPTURE_VIDEO_OUTPUT from package com.google.android.gms (protectionLevel=2 flags=0xa0cabec5) 2020-08-11 11:33:47.277 2030-2069/? I/PackageManager: Un-granting permission android.permission.MANAGE_DEVICE_ADMINS from package com.google.android.gms (protectionLevel=2 flags=0xa0cabec5) 2020-08-11 11:33:47.277 2030-2069/? I/PackageManager: Un-granting permission android.permission.MANAGE_ACTIVITY_STACKS from package com.google.android.gms (protectionLevel=2 flags=0xa0cabec5) 2020-08-11 11:33:47.277 2030-2069/? I/PackageManager: Un-granting permission android.permission.CAPTURE_SECURE_VIDEO_OUTPUT from package com.google.android.gms (protectionLevel=2 flags=0xa0cabec5) 2020-08-11 11:33:47.277 2030-2069/? I/PackageManager: Un-granting permission android.permission.MANAGE_ROLLBACKS from package com.google.android.gms (protectionLevel=514 flags=0xa0cabec5) 2020-08-11 11:33:47.279 2030-2069/? I/PackageManager: Un-granting permission com.google.android.googleapps.permission.GOOGLE_AUTH from package com.google.android.videos (protectionLevel=2 flags=0x30dbbe45) 2020-08-11 11:33:47.280 2030-2069/? I/PackageManager: Un-granting permission android.permission.WRITE_MEDIA_STORAGE from package com.google.android.apps.photos (protectionLevel=18 flags=0x38d9be45) 2020-08-11 11:33:47.284 2030-2069/? I/PackageManager: Un-granting permission android.permission.SYSTEM_ALERT_WINDOW from package com.mrousavy.springsale (protectionLevel=1250 flags=0x38483f46) ``` ### Unable to instantiate appComponentFactory Error StackTrace ``` 2020-08-11 11:33:48.034 2030-2030/? E/LoadedApk: Unable to instantiate appComponentFactory java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" on path: DexPathList[[],nativeLibraryDirectories=[/data/app/com.example-d3SvssRQjtOqTy2yp3YCsA==/lib/x86, /data/app/com.example-d3SvssRQjtOqTy2yp3YCsA==/base.apk!/lib/x86, /system/lib, /system/product/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at android.app.LoadedApk.createAppFactory(LoadedApk.java:256) at android.app.LoadedApk.updateApplicationInfo(LoadedApk.java:370) at android.app.ActivityThread.handleDispatchPackageBroadcast(ActivityThread.java:5951) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1941) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at com.android.server.SystemServer.run(SystemServer.java:541) at com.android.server.SystemServer.main(SystemServer.java:349) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:908) ``` ### React Create Context ``` 2020-08-11 11:33:52.315 5176-5256/com.mrousavy.springsale E/GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID '290453355515078' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api} 2020-08-11 11:33:52.316 5176-5256/com.mrousavy.springsale W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) 2020-08-11 11:33:52.316 5176-5264/com.mrousavy.springsale W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) 2020-08-11 11:33:52.316 5176-5256/com.mrousavy.springsale W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) 2020-08-11 11:33:52.316 5176-5256/com.mrousavy.springsale W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed) 2020-08-11 11:33:52.346 5176-5279/com.mrousavy.springsale E/ReactNativeJNI: logMarker CREATE_REACT_CONTEXT_END 2020-08-11 11:33:52.347 5176-5274/com.mrousavy.springsale E/unknown:ReactNative: ReactInstanceManager.createReactContext: mJSIModulePackage null 2020-08-11 11:33:52.350 5176-5274/com.mrousavy.springsale E/unknown:DisabledDevSupportManager: Caught exception java.lang.RuntimeException: Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release. at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method) at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:234) at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:29) at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:258) at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1293) at com.facebook.react.ReactInstanceManager.access$1100(ReactInstanceManager.java:131) at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1016) at java.lang.Thread.run(Thread.java:919) --------- beginning of crash 2020-08-11 11:33:52.352 5176-5274/com.mrousavy.springsale E/AndroidRuntime: FATAL EXCEPTION: create_react_context Process: com.mrousavy.springsale, PID: 5176 java.lang.RuntimeException: Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release. at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method) at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:234) at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:29) at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:258) at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1293) at com.facebook.react.ReactInstanceManager.access$1100(ReactInstanceManager.java:131) at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1016) at java.lang.Thread.run(Thread.java:919) 2020-08-11 11:33:52.498 13316-13413/? E/ActivityThread: Failed to find provider info for com.google.android.apps.wellbeing.api ``` ### A lot of reflection Warnings ``` 2020-08-11 11:27:39.968 4939-5019/? E/GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID '290453355515078' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api} 2020-08-11 11:27:39.968 4939-5019/? W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) 2020-08-11 11:27:39.968 4939-5027/? W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) 2020-08-11 11:27:39.971 4939-5019/? W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) 2020-08-11 11:27:39.971 4939-5019/? W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) 2020-08-11 11:27:39.972 4939-5019/? W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed) 2020-08-11 11:27:39.972 4939-5019/? W/savy.springsal: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) 2020-08-11 11:27:40.101 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupViewManager 2020-08-11 11:27:40.104 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode 2020-08-11 11:27:40.106 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeViewManager 2020-08-11 11:27:40.107 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode 2020-08-11 11:27:40.108 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextViewManager 2020-08-11 11:27:40.109 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode 2020-08-11 11:27:40.109 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.checkbox.ReactCheckBoxManager 2020-08-11 11:27:40.116 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode 2020-08-11 11:27:40.125 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager 2020-08-11 11:27:40.132 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager 2020-08-11 11:27:40.137 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager 2020-08-11 11:27:40.143 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager 2020-08-11 11:27:40.150 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager 2020-08-11 11:27:40.154 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager 2020-08-11 11:27:40.159 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode 2020-08-11 11:27:40.164 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager 2020-08-11 11:27:40.170 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager 2020-08-11 11:27:40.175 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode 2020-08-11 11:27:40.177 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager 2020-08-11 11:27:40.180 4939-4939/? E/unknown:ReactNative: Unable to launch logbox because react was unable to create the root view 2020-08-11 11:27:40.183 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode 2020-08-11 11:27:40.186 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager 2020-08-11 11:27:40.192 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager 2020-08-11 11:27:40.194 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode 2020-08-11 11:27:40.197 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager 2020-08-11 11:27:40.200 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode 2020-08-11 11:27:40.205 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager 2020-08-11 11:27:40.214 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager 2020-08-11 11:27:40.220 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode 2020-08-11 11:27:40.230 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager 2020-08-11 11:27:40.234 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextShadowNode 2020-08-11 11:27:40.235 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager 2020-08-11 11:27:40.241 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode 2020-08-11 11:27:40.245 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager 2020-08-11 11:27:40.248 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode 2020-08-11 11:27:40.248 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager 2020-08-11 11:27:40.252 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager 2020-08-11 11:27:40.254 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager 2020-08-11 11:27:40.255 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode 2020-08-11 11:27:40.255 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTGroupViewManager 2020-08-11 11:27:40.255 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTGroupShadowNode 2020-08-11 11:27:40.256 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTShapeViewManager 2020-08-11 11:27:40.256 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTShapeShadowNode 2020-08-11 11:27:40.257 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTTextViewManager 2020-08-11 11:27:40.258 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTTextShadowNode 2020-08-11 11:27:40.258 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTSurfaceViewManager 2020-08-11 11:27:40.260 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTSurfaceViewShadowNode 2020-08-11 11:27:40.261 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.cmcewen.blurview.BlurViewManager 2020-08-11 11:27:40.263 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class co.apptailor.googlesignin.RNGoogleSigninButtonViewManager 2020-08-11 11:27:40.264 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class org.reactnative.maskedview.RNCMaskedViewManager 2020-08-11 11:27:40.264 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.slider.ReactSliderManager 2020-08-11 11:27:40.266 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.slider.ReactSliderManager$ReactSliderShadowNode 2020-08-11 11:27:40.267 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.ammarahmed.rnadmob.nativeads.RNAdMobNativeViewManager 2020-08-11 11:27:40.269 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.ammarahmed.rnadmob.nativeads.RNAdMobMediaViewManager 2020-08-11 11:27:40.270 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.ammarahmed.rnadmob.nativeads.RNAdComponentsWrapperManager 2020-08-11 11:27:40.272 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.ammarahmed.rnadmob.nativeads.RNAdmobAdChoicesManager 2020-08-11 11:27:40.272 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.mrousavy.blurhash.BlurhashViewManager 2020-08-11 11:27:40.274 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.dylanvann.fastimage.FastImageViewManager 2020-08-11 11:27:40.275 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.reactnative.androidsdk.FBLoginButtonManager 2020-08-11 11:27:40.276 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.reactnative.androidsdk.FBSendButtonManager 2020-08-11 11:27:40.278 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.reactnative.androidsdk.FBShareButtonManager 2020-08-11 11:27:40.279 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerRootViewManager 2020-08-11 11:27:40.280 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerButtonViewManager 2020-08-11 11:27:40.281 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.BV.LinearGradient.LinearGradientManager 2020-08-11 11:27:40.282 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapCalloutManager 2020-08-11 11:27:40.282 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapMarkerManager 2020-08-11 11:27:40.283 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapPolylineManager 2020-08-11 11:27:40.284 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapGradientPolylineManager 2020-08-11 11:27:40.284 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapPolygonManager 2020-08-11 11:27:40.286 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapCircleManager 2020-08-11 11:27:40.288 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapManager 2020-08-11 11:27:40.290 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapLiteManager 2020-08-11 11:27:40.291 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapUrlTileManager 2020-08-11 11:27:40.291 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapWMSTileManager 2020-08-11 11:27:40.292 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapLocalTileManager 2020-08-11 11:27:40.292 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapOverlayManager 2020-08-11 11:27:40.293 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.AirMapHeatmapManager 2020-08-11 11:27:40.295 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaProviderManager 2020-08-11 11:27:40.295 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaViewManager 2020-08-11 11:27:40.295 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaViewShadowNode 2020-08-11 11:27:40.297 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenContainerViewManager 2020-08-11 11:27:40.298 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenViewManager 2020-08-11 11:27:40.299 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackViewManager 2020-08-11 11:27:40.299 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderConfigViewManager 2020-08-11 11:27:40.300 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderSubviewManager 2020-08-11 11:27:40.301 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.ijzerenhein.sharedelement.RNSharedElementTransitionManager 2020-08-11 11:27:40.302 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$GroupViewManager 2020-08-11 11:27:40.303 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$RenderableShadowNode 2020-08-11 11:27:40.304 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$PathViewManager 2020-08-11 11:27:40.305 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$CircleViewManager 2020-08-11 11:27:40.305 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$EllipseViewManager 2020-08-11 11:27:40.306 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$LineViewManager 2020-08-11 11:27:40.306 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$RectViewManager 2020-08-11 11:27:40.307 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$TextViewManager 2020-08-11 11:27:40.307 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$TSpanViewManager 2020-08-11 11:27:40.308 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$TextPathViewManager 2020-08-11 11:27:40.308 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$ImageViewManager 2020-08-11 11:27:40.309 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$ClipPathViewManager 2020-08-11 11:27:40.309 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$DefsViewManager 2020-08-11 11:27:40.309 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$UseViewManager 2020-08-11 11:27:40.309 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$SymbolManager 2020-08-11 11:27:40.310 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$LinearGradientManager 2020-08-11 11:27:40.310 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$RadialGradientManager 2020-08-11 11:27:40.311 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$PatternManager 2020-08-11 11:27:40.312 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$MaskManager 2020-08-11 11:27:40.314 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$ForeignObjectManager 2020-08-11 11:27:40.315 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$MarkerManager 2020-08-11 11:27:40.317 4939-5044/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.SvgViewManager ``` ### A WiFi error ``` 2020-08-11 11:28:08.508 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8 2020-08-11 11:28:08.508 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8 2020-08-11 11:28:08.561 1952-1952/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument 2020-08-11 11:28:09.508 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8 2020-08-11 11:28:09.508 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8 2020-08-11 11:28:09.781 1954-1954/? E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe 2020-08-11 11:28:10.510 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8 2020-08-11 11:28:10.510 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8 2020-08-11 11:28:11.511 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8 2020-08-11 11:28:11.511 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8 2020-08-11 11:28:12.513 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8 2020-08-11 11:28:12.513 1794-2257/? E/GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8 ``` > I'm getting a lot of those `GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8` prints ### An error StackTrace ``` 2020-08-11 11:29:59.383 21886-21919/? E/ModuleIdSetter: exception when setting module id java.lang.IllegalStateException: Unable to get current module info in ModuleManager created with non-module Context at com.google.android.chimera.config.ModuleManager.getCurrentModule(:com.google.android.gms@202414040@20.24.14 (120700-319035315):2) at aeua.a(:com.google.android.gms@202414040@20.24.14 (120700-319035315):4) at aeud.b(:com.google.android.gms@202414040@20.24.14 (120700-319035315):9) at aeql.a(Unknown Source:0) at rnb.a(:com.google.android.gms@202414040@20.24.14 (120700-319035315):0) at rjk.c(:com.google.android.gms@202414040@20.24.14 (120700-319035315):1) at rji.b(:com.google.android.gms@202414040@20.24.14 (120700-319035315):1) at rlz.b(:com.google.android.gms@202414040@20.24.14 (120700-319035315):6) at rlz.c(:com.google.android.gms@202414040@20.24.14 (120700-319035315):6) at rlz.b(:com.google.android.gms@202414040@20.24.14 (120700-319035315):10) at rlz.a(:com.google.android.gms@202414040@20.24.14 (120700-319035315):17) at rlz.g(:com.google.android.gms@202414040@20.24.14 (120700-319035315):3) at sbg.a(:com.google.android.gms@202414040@20.24.14 (120700-319035315):2) at sag.a(:com.google.android.gms@202414040@20.24.14 (120700-319035315):10) at rzx.a(:com.google.android.gms@202414040@20.24.14 (120700-319035315):0) at saa.handleMessage(:com.google.android.gms@202414040@20.24.14 (120700-319035315):28) at android.os.Handler.dispatchMessage(Handler.java:107) at aeiw.a(:com.google.android.gms@202414040@20.24.14 (120700-319035315):2) at aeiw.dispatchMessage(:com.google.android.gms@202414040@20.24.14 (120700-319035315):14) at android.os.Looper.loop(Looper.java:214) at android.os.HandlerThread.run(HandlerThread.java:67) ``` ### Another Error StackTrace ``` 2020-08-11 11:33:00.620 19376-19469/? E/Finsky: [3558] glz.a(2): [Counters Flush] Error when getting counter events to log java.lang.NullPointerException: Attempt to read from field 'int aypb.eM' on a null object reference at glk.call(Unknown Source:226) at atnq.b(Unknown Source:2) at atmr.run(PG:3) at atnr.run(Unknown Source:4) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at kjc.run(PG:4) at java.lang.Thread.run(Thread.java:919) 2020-08-11 11:33:00.622 19376-19471/? E/Finsky: [3560] glo.a(7): [Counters Flush] Failure when flushing counters java.lang.NullPointerException: Attempt to read from field 'int aypb.eM' on a null object reference at glk.call(Unknown Source:226) at atnq.b(Unknown Source:2) at atmr.run(PG:3) at atnr.run(Unknown Source:4) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at kjc.run(PG:4) at java.lang.Thread.run(Thread.java:919) ```When I ran the following command:
I could start the App through Android Studio, but of course this is not a solution, as I have to run this command every time I change something (even in JS), so I don't have live-reload anymore, I don't have
console.log
s, and I have a terrible development experience.So in short: Somehow my app can't stream the bundle over the metro bundler server on
localhost
anymore, but it works when I manually create the bundle. It doesn't even start the Metro Bundler! On iOS it works.Can someone maybe also quickly explain to me what the static bundle is?
React Native version:
Expected Results
The App should start and fetch the JS bundle from my metro bundler server
My files/configs
### `build.gradle` ```groovy // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 16 compileSdkVersion = 29 targetSdkVersion = 29 playServicesVersion = "17.0.0" // latest version per https://developers.google.com/android/guides/releases for gms:play-services-maps: } repositories { google() jcenter() } dependencies { classpath('com.android.tools.build:gradle:4.0.1') // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath('com.google.gms:google-services:4.3.3') classpath('com.google.firebase:perf-plugin:1.3.1') classpath('com.google.firebase:firebase-crashlytics-gradle:2.2.0') } } allprojects { repositories { mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } google() jcenter() maven { url 'https://maven.google.com' } maven { url 'https://www.jitpack.io' } } } ``` ### `app/build.gradle` ```groovy apply plugin: "com.android.application" apply plugin: 'com.google.gms.google-services' // apply after this line apply plugin: 'com.google.firebase.firebase-perf' apply plugin: 'com.google.firebase.crashlytics' import com.android.build.OutputFile /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle * bundleAssetName: "index.android.bundle", * * // the entry file for bundle generation. If none specified and * // "index.android.js" exists, it will be used. Otherwise "index.js" is * // default. Can be overridden with ENTRY_FILE environment variable. * entryFile: "index.android.js", * * // https://reactnative.dev/docs/performance#enable-the-ram-format * bundleCommand: "ram-bundle", * * // whether to bundle JS and assets in debug mode * bundleInDebug: false, * * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) * // for example: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' * // 'devDisabledIn${buildType}' * * // the root of your project, i.e. where "package.json" lives * root: "../../", * * // where to put the JS bundle asset in debug mode * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", * * // where to put the JS bundle asset in release mode * jsBundleDirRelease: "$buildDir/intermediates/assets/release", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in debug mode * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in release mode * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", * * // by default the gradle tasks are skipped if none of the JS files or assets change; this means * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"], * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ project.ext.react = [ enableHermes: false, // clean and rebuild if changing ] apply from: "../../node_modules/react-native/react.gradle" /** * Set this to true to create two separate APKs instead of one: * - An APK that only works on ARM devices * - An APK that only works on x86 devices * The advantage is the size of the APK is reduced by about 4MB. * Upload all the APKs to the Play Store and people will download * the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = false /** * The preferred build flavor of JavaScriptCore. * * For example, to use the international variant, you can use: * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` * * The international variant includes ICU i18n library and necessary data * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that * give correct results when using with locales other than en-US. Note that * this variant is about 6MiB larger per architecture than default. */ def jscFlavor = 'org.webkit:android-jsc-intl:+' /** * Whether to enable the Hermes VM. * * This should be set on project.ext.react and mirrored here. If it is not set * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode * and the benefits of using Hermes will therefore be sharply reduced. */ def enableHermes = project.ext.react.get("enableHermes", false); android { compileSdkVersion rootProject.ext.compileSdkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.mrousavy.springsale" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" multiDexEnabled true } signingConfigs { release { if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) { storeFile file(MYAPP_UPLOAD_STORE_FILE) storePassword MYAPP_UPLOAD_STORE_PASSWORD keyAlias MYAPP_UPLOAD_KEY_ALIAS keyPassword MYAPP_UPLOAD_KEY_PASSWORD } } debug { storePassword 'android' keyAlias 'androiddebugkey' keyPassword 'android' storeFile file('/Users/mrousavy/.android/debug.keystore') } } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" } } buildTypes { debug { signingConfig signingConfigs.debug } release { // Caution! In production, you need to generate your own keystore file. // see https://reactnative.dev/docs/signed-apk-android. minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" signingConfig signingConfigs.release // TODO: Firebase Crashlytics NDK Reporting! firebaseCrashlytics { nativeSymbolUploadEnabled true strippedNativeLibsDir "build/ndklibs/obj" unstrippedNativeLibsDir "build/ndklibs/libs" } } } // TODO: packagingOptions removed from https://react-native-community.github.io/upgrade-helper/?from=0.62.2&to=0.63.0 ? // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // https://developer.android.com/studio/build/configure-apk-splits.html def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = versionCodes.get(abi) * 1048576 + defaultConfig.versionCode } } } } dependencies { implementation 'com.android.support:multidex:1.0.3' implementation fileTree(dir: "libs", include: ["*.jar"]) //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" // From node_modules implementation 'com.facebook.soloader:soloader:0.9.0+' // From https://github.com/facebook/react-native/issues/25537#issuecomment-645932708 implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" // TODO: implementation 'com.facebook.android:facebook-android-sdk:[4,5)' // TODO: implementation(project(":react-native-google-signin")) debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { exclude group:'com.facebook.fbjni' } debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { exclude group:'com.facebook.flipper' exclude group:'com.squareup.okhttp3', module:'okhttp' } debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { exclude group:'com.facebook.flipper' } if (enableHermes) { def hermesPath = "../../node_modules/hermes-engine/android/"; debugImplementation files(hermesPath + "hermes-debug.aar") releaseImplementation files(hermesPath + "hermes-release.aar") } else { implementation jscFlavor } } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' } project.ext.vectoricons = [ iconFontNames: [ 'MaterialCommunityIcons.ttf' ] ] apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) ```