In React Native change not affect on real device - android

I am new in React Native. My environment is windows-10. I have created a simple project, it runs android emulator and real device successfully.
If i change something in App.js and build it into real device i don't see any changes, but i can see changes in my emulator.
Can anybody tell me what should i do, to see my change in real device ? I cleaned project and built it again in real device, but it doesn't change it shows the previous output.
I also tried it to uninstall app and execute below commands :
npm run start
react-native run-android
But it shows :

Related

Emulator not starting automatically when running react native project in webstrom or VS code terminal

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

How to set up an existing React-Native project from a new computer for the first time?

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.

Android Studio no connected device problem

I have a freshly installed android studio on my PC for flutter development, but I am facing this issue.
As seen in the photo the virtual device shows up.
https://drive.google.com/open?id=1mcGs0qxKVZafD4j0J02n44n-3fbu1iHR
but it shows loading in the android studio toolbar.
https://drive.google.com/open?id=1yJ18a7DL4Livfc31pKryXrRJCUjkO1hW
when I try to run the application this message shows up
https://drive.google.com/open?id=18cWfhtbh4M9Nkn8KQAaRRSvLi8R0DPMR
but when I run "flutter doctor" everything seems to be fine.
https://drive.google.com/open?id=1E6MoIvWEnwFjOl-E_gjYQAjxJSlvs6fz
though if try to run it using "flutter run" nothing happens it just gets stuck on "running gradle task"
https://drive.google.com/open?id=1f6D1V63c06uu6LyY077zP6DLkEkggnTN
for android device, I solved it using this :
flutter config --android-sdk /path/to/android/sdk
not sure if it'll work with iOS devices as well.
Please check your studio is loading current active device.
On top there are four option:
1) One is for on which active device you want to run apk(phone icon available).
2) Second is represent starting point of app(flutter logo icon).
3) Total device available.
4) last on run app
so please check first option where studio find active device.

Ionic 4 - install run performed a full build and install since the installation on device does not match the local build on disk

Im trying to generate an APK to test my android build, it used to work before, i dont know what went wrong that it stopped working, whenever i try to run on device either on android studio or my own device, it does not build even though its error clean. App actually installs, but when its about to run it closes down and this message appears
Heres what i got from checking the logcat on Android Studio: https://imgur.com/a/FdE4WMo
Try uninstalling the app from the device and then run it again.
The dev / debug build uses an encryption key that's specific to the machine so I think that maybe you are trying to install a different app over the original one?

phonegap emulate android , app not installed , how to initialize android simulator

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.

Categories

Resources