Hi guys been trying to run my react native project but have failed. Initially, i could deploy it very well on my device while using linux, but when i ran it on windows now it throws an. Can any one help me out, here is the screen shot on my nodejs console.
You see the list of actions to take to fix the issue? I would do each of them.
Related
i have a problem when i build an apk using the command expo build:android. I've got a white screen. It seems the problem is related to firebase because i had to add react native fcm to receive notifications on my app. When i comment everything related to fcm/firebase (androidmanifest, build.gradle...) my apk works. The problem is idk where i can see the errors, what i am missing because i followed all the tutorial on the react native firebase website to install cloud messaging. If you have an idea it would really help me, thanks in advance.
this is the tutorial in question : https://rnfirebase.io/messaging/usage
I tried many times to modify the dependencies in build gradle, add new things i found in internet on the manifest, change versions... nothing works :(
try checking your Android studio logs which shows red color highlighted text in it while running the react-native application. Hope that helps you in finding the problem.
So I recently started working with my friend on his app project and I've had trouble building his react-native based project. It's both ios and android.
On android, I can get as far as building, but when I run the app shuts down instantly or shows a red screen with some firebase error.
On ios, I get a build error.
My question is: what do I need to install when I first pull the repo from github? I run '''yarn install''' straight away and run '''pod install''' from the ios folder but that isn't enough. Anything I should run for android more than the yarn install command I had already used?
Thanks!
It seems your development environment is not set up yet. Follow this link to set up your environment.
I have been trying to debug the native android code that is invoked through platform channel in flutter and the debugging is only in the flutter side. The execution doesn't hit the breakpoint in the native android. The application is working as expected but the debugging doesn't. I am using Android studio. Can some one please tell me how to debug the native android code ?
Breakpoints are working fine for me when using Android Studio at project/android/, on both emulator and physical device. And remember to Debug instead of Run (^D instead of ^R). Note, it did not work when opening the project from project/.
I don't think making a new android project to write the Native code for a flutter app is a good option (vivek's suggestion). There are many Flutter specific considerations you need to make on the native side, it is not just an Android app.
If you navigate to MainActivity.kt or MainActivity.java in the android studio then you can see "Open for Editing in Android Studio" on the top right.
click on that and it will open you a new window where you can easily write native code.
Well, better if you can write whole code in a new android project and test there then use that code to make flutter plugin. I think this will be faster than to edit in flutter project.
let me know what others think.
The answer given by #Marcos Boaventura to follow this blog helped fix the issue. https://medium.com/flutterpub/flutter-app-couldnt-find-libflutter-so-c95ad81cbccd
After fixing the gradle the debug is successful. Thank you #Marcos Boaventura
I had a similar problem. Debugging native code on an emulator worked, while debugging on a physical device (Zebra TC25, Android 7.1) crashed with a Fatal signal 11 (SIGSEGV). Switching from the Flutter beta channel to the Flutter stable channel fixed it for me.
I am getting JsonWebToken$Payload error on android studio while trying to run app on simulator. I also tried to run on physical device yet same error. There's no issue on iOS side, build has been developed. Can anyone please help me out? Attached the screenshot as well.
I have already tried clean project and invalidate & restart.
Any idea? Thanks
Okay, I found the solution. Just disable the instant run and it worked like a charm.
ref: https://github.com/invertase/react-native-firebase/issues/915#issuecomment-383020978
I did all the steps to create a react native application , but when it came to running the App it shows me this Error below in the image , what could be the problem.
You have to make sure your emulator is run (i recommended using genymotion), and also ensure you have been to configure your system with android environment. You can follow step by step in the documentation.