Application migrated from Expo to ReactNative not running in Android Emulator - android

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.

Related

expo eject - android app not finding developer environment after

I have got my expo project and I ran 'expo eject' to run it in the react-native CLI. It works on the iOS with some adjusting (thanks to the guys on GitHub) however I can't seem to get my android to work. It's saying
'Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.'
I have tried building a new react-native app (without using expo) and it works no problem.
To me the ejected project is not linking to the environment somewhere. I have tried updating android studio, going through the environment setup and update gradle (that caused more issues haha)
Has anybody else come across this please?
I have worked out the solution around this. Run these next steps soon after you do 'expo eject' (As it suggests in the console after eject runs)
Next steps
› 💡 You may want to run npx #react-native-community/cli doctor to help install any tools that your app may need to run your native projects.
› 🔑 Download your Android keystore (if you're not sure if you need to, just run the command and see): expo fetch:android:keystoreNext steps

React native Emulator not found

I'm facing an Error in react-native I've installed vs code and Android SDK without android Studio And I've created Some Projects With Flutter That runs fine but now i'm trying to run react-native but When i run react-native run-android It throwing an error
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
and I've connected my android device also still it giving same error please help me to resolve this..

Setting up AndroidStudio for ReactNative on Windows

everybody,
Yesterday I Installed everything necessary to develop and run an Android app with React Native on Windows: I updated my node.js, installed python2, react-native-cli, Android Studio with AndroidSDK with all tools and all necesary package details how it is described in React Native documentation. Also I set up Environment variables and path for ANDROID_HOME. Wneh I create a new emulator and run it I received this messages in Android studio:
"Unable to run 'adb': null"
and
"'C:\Users\User5\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary"
When I create and run a new ReactNative app the building stucks on 97%. Attach imgs bellow.
When I create and run project on iOS there is no any problem.
I watched a lot of videos and tutorials and nothing seems wrong. But they all are with older version of Android Studio.
Does anybody know where could be the problem?
Thanks in advance.
My React Native very first Android Project stuck building on this stage:

NativeScript Debugging with Android fails

I am new to mobile development and NativeScript. I am trying to find out how to debug my app rather than just putting console.log statements.
I am using Visual Studio Code as my text editor on Windows 10 machine with Visual Studio Emulator for Android or Genymotion Emulator.
I tried to debug using Chrome as explained here and also tried using NativeScript Extension for Visual Studio Code
With debugging using NativeScript CLI, project successfully opens Chrome browser but throws a 404 error.
tns debug android --debug-brk
With Visual Studio Code extension, i receive this error:
and I see an error in the command prompt.
I tried suggestions from this SO post, though this problem is with Chromium, but that did not help.

Error while running for mobile platforms: Error running cordova.sh Current working directory is not a Cordova-based project

I followed the instructions on https://www.meteor.com/try/7 in order to properly install the android sdk for meteor. Although I was able to properly install it, I can't get it to work.
When trying to start the android emulator using meteor run android it throws me an exception:
Error while running for mobile platforms: Error running cordova.sh
Current working directory is not a Cordova-based project.
Edit
The same applies to the ios simulator when trying to run it using meteor run ios
You need go to your directory first and run the command.
cd your_cordova_project_path

Categories

Resources