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.
Related
Every time if I want to run RN project I want to start an android studio and start the emulator manually and then go to the terminal and run the RN. if i run the project without starting an emulator it's giving me an error.
error I got when I run the project without starting an emulaotr
from my experience this is expected behavior. On Mac, running an iOS project is able to open the built in emulator, but never on Android. The error is just letting you know there are no devices running.
One helpful thing you can do is create a shortcut or terminal command to open your emulator without opening Android Studio, which is kind of a pain to open just to start an emulator. You can do this using something like what is mentioned here: https://stackoverflow.com/a/33487044/3218158
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 want to preview my nativescript code on an android emulator which as i use the command line which is, i navigated to my app folder which which was successfully but when i type "tns preview" to run an android emulator to see my code in action i get
Found peer TypeScript 3.1.6
#
# Fatal
process OOM in insufficient memory to create an Isolate
#
TypeScript compiler failed with exit code 3221225477
and an android emulator is connected successfully, even nativescript notice the emulator, please what do i do
i have tried the Nativescript sidekick to start the emulator but the nativescript sees the android emulator and it did not report an error indication but when i select the android emulator and click "Run on Device" i get
Build failed. TypeScript compiler failed with exit code 3221225477
even i have tried using my android device for previewing it which i install the nativescript playground & nativescript preview but if i scan the QR Code it is not previewing, please help out
please i need a solution
Preview is to be used with real device for quick testing. The basic idea is to avoid setting up whole iOS / Android SDKs on your local machine.
Produces a QR code which can be used to preview the app on a device without the need to install various SDKs and tools or configure your environment for local iOS or Android development.
To scan the QR code and deploy your app on a device, you need to have
the NativeScript Playground app:
App Store (iOS):
https://itunes.apple.com/us/app/nativescript-playground/id1263543946?mt=8&ls=1
Google Play (Android):
https://play.google.com/store/apps/details?id=org.nativescript.play
If you want to view your app on your android emulator, run the command
'tns run android --emulator'
This is assuming you already have an emulator set up on your machine.
To see a list of your available devices run the command
'tns device'
If you have not set up an emulator follow setup here: https://docs.nativescript.org/tooling/android-virtual-devices
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 use phonegap build a app,and run phonegap emulate android, and I uninstall the app .
The next time I try to phonegap run android, It'll still open the same android , which the app uninstalled . That way , I can find the app, I mean how to initialize android simulator and debug the app again?
In one words , how to update the app on the android emulator?
In your command prompt
you can see which devices/emulators connected to your system using
adb devices
you can open avd-manager using
android avd
To start on configure new avd-emulator using cmd check this
I would say open up the Android emulator and uninstall the application like you would any Android app - using Android's native uninstall method. Ensure that you don't have differently (re)named versions of your app, and ensure you have them ALL uninstalled.
phonegap run android will run the same code base on Android each and every time, unless you update the code. Once you update the code and type phonegap run android again, it should run the updated code base.
At worst, reset your Android emulator.