Can't find setTimeOut from index.android.bundle - android

i'm using react-native-cli : 2.0.1 and react-native : 0.50.1.
When i'm using a debug version it's works fine, but when i'm trying to build a release version the apps don't start and crash. i already followed the steps from the official website. i try to debug it with logcat and get this error

i resolve this problem by upgrading react-native to 0.50.3 using this step and now it's working perfectly !

Related

Application migrated from Expo to ReactNative not running in Android Emulator

I have converted Expo app to react-native by following expo kit document. Everything seems to be good. If I open android folder in android studio, I have not seen any issue. But when I run ' react-native run-android ' command it is giving below error.
---- Error message ----
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
Android studio configured as per document and enumulator is running.
I searched in google to resolve this issue and tried the options below Reinstalling npm, cleaning,and re-running.
Any help to solve this issue will be of great help for me to continue my application development.

RNFirebase core module was not found natively on android

I am trying to run an existing react native app on android platform and I am getting the error as in the below image. I have already followed all the steps mentioned under http://invertase.link/android, but I still am facing this error.
I am a complete beginner in react native, have already exhausted all the solutions available on the web and this post is my last resort.
You have to add import io.invertase.firebase.RNFirebasePackage; and new RNFirebasePackage() in the MainApplication.java
In my case I deleted my app from emulator and reinstall that by giving the command (react-native run-android) and that process worked for me.
I had this same exact issue, and the underlying issue was that Invertase's starter project was already ejected from Expo and utilizing native modules. Expo was unable to link those. To integrate Firebase in Expo, I redid my project using create-react-native-app, copied all the source JS files over, then followed this guide, doing npm install --save firebase. I had to reinstall all the dependencies again with npm, but integrating Firebase was much easier.

React Native package conflict: native-base x react-native-firebase

Today I created an (empty) Android app using the "react-native-firebase" and "native-base" packages. It works in debug mode, but in release mode crash occurs.
Steps to reproduce the problem:
Create a new app
react-native init BaseTest
cd BaseTest
Install the "native-base"
npm install native-base --save
react-native link
Install the "react-native-firebase"
https://rnfirebase.io/docs/v3.1.*/installation/initial-setup
https://rnfirebase.io/docs/v3.1.*/installation/android
Generating Signed APK
https://facebook.github.io/react-native/docs/signed-apk-android.html
Build release and install
cd android
gradlew assembleRelease
adb install app-release.apk
I could not find the error. Does anyone have any ideas?
Hi I got the same issue and it really aced my head but I managed to resolve it. So instead of running
react-native link run react-native link **native-base**.
I hope this helps. Happy coding :)

Getting error trying to use react-native-fbsdk on android

I'm trying to add a Facebook Login on my react native project using react-native-fbsdk library, but I am getting error while running react-native run-android.
Here's the screenshot of the error:
I have clearly followed the installation instructions from their github repo: https://github.com/facebook/react-native-fbsdk
I tried most of the solutions found on SO but couldn't make it run.
I have following versions installed:
react-native#0.47.1
react-native-fbsdk#0.6.0
This is due to breaking change in 0.47.1 which affects most of the native dependencies. In case of react-native-fbsdk, they has yet to release new version. So if you use following version, it would be fine.
react-native : 0.46.4
react-native-fbsdk : 0.6.1

Cannot find module "./app.module.ngfactory"

I updated Ionic from RC1 to RC3 following the documentation instructions and after that I can't run my app properly in Android using ionic run android or ionic build android. Previewing with ionic serve and .apk build works properly, but when I run the app in my device or in an emulator, it shows the splashscreen and after a blank WebView. When I debug via chrome://inspect, it shows in console the following error:
main.js:7 Uncaught Error: Cannot find module "./app.module.ngfactory"
I made a backup of the project folder before the update, when my app was working properly, and the code is the same (no changes during the upgrade), and the app.module.ts, main.dev.ts and main.prod.ts seems fine.
I tried remove .tmp and node-modules folder and run npm install again, but the error persists.
check this out: https://forum.ionicframework.com/t/cannot-find-module-app-module-ngfactory/72832/3
The newest version of typescript caused the error for me.
In my case I had an import problem with NGTranslate.
See here Ionic Forum Post

Categories

Resources