NativeScript Debugging with Android fails - android

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.

Related

How to diagnose meteor android app crashing on opening app

Meteor 1.8.2. I try to open the app on the simulator or real device and it crashes before showing any splash screen. It shows the error “The app has stopped”
This happens both locally (with the meteor run android command) and with the staging version (with meteor build).
If I use another computer to build the app from the same source, it works (both macbooks 2015~2016)
I tried
older versions of the same app
deleting cordova-plugins
removing and adding platform
meteor reset
removing cordova cache
downgrading Android Studio and Platform Tools
deleting the entire project and re-cloning from github
running the emulator directly with verbose log ($ emulator #Nexus_4_API_27 -verbose; I get logs as the emulator starts up but nothing when I open the app and it crashes)
reinstalling meteor
copying the entire Android SDK folder from the other computer
Nothing worked.
If anyone has any clues how I could diagnose this I would be grateful.
Eventually, some combination of the following seems to have solved it
changing back to the previous Android SDK folder
updating to the latest patch of Platform Tools and SDK Tools
updating Meteor to the latest version 1.10.2 (which includes a cordova update compared to Meteor 1.8.2)

How to run cli created cordova project, in visual studio?

I have created a cordova project using command line and running everything using VS code. But, the problem is now I want to push my app to playstore and that I cannot do with VS Code. So for that I want to run my project in Visual Studio 2017. Is there anyway to run the CLI generated cordova app in visual studio.
Here are a couple links related to running a Cordova App in VS. Seems like you'll have to plug in an android device, run an android emulator, or run it in a browser:
https://learn.microsoft.com/en-us/visualstudio/cross-platform/tools-for-cordova/run-your-app/run-app-android?view=toolsforcordova-2017#google-android-emulator

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.

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:

Netbeans IDE: Unknown error when running a Cordova project

Ok, I am having a real painful issue on Netbeans IDE 8.0. I have already installed Android SDK, GIT, Cordova and Node.js.
However, I tried to test an index.html sample page by clicking on "Run" above, and I got an unknown error (Refer to the attached screenshot here).
Why is this? Thank!

Categories

Resources