NativeScript won't run local build from Sidekick - android

I freshly installed Sidekick for NativeScript.
When I press "Run on Device" button application throws
"Your system is not configured for local builds"
Weirdly running the app from cmd with tsc run command works perfectly and application compiles and even start on my device with no problem. This is probably something with Sidekick. I tried to reinstall app and even create fresh project.
I'm running on Windows 10 using Android SDK 25 and have libraries on version 5.0
Did anyone had the same problem?

It's most likely because you havent set up your machine for local builds although Sidekick is supposed to help automate that.
Try this:
run tns doctor in your cmd at elevated permissions and select
configure for local build when prompted or any of the options that appeal to you if you change your mind.

Related

Problem launching Android Emulator from Capacitor App in VSCode

I have an Ionic Capacitor app running from VSCode, but am getting the following error when I try to launch the emulator directly from the IDE:
Multiple network interfaces detected! You must select an
external-facing IP for the dev server that your device or emulator can
access with the --public-host option.
I'm using the Ionic extension for VSCode to launch the Android emulator from VSCode, which ultimately is running the following command:
npx ionic build && npx ionic cap run android -l --external --target=Pixel_5_API_27
As shown that's a Pixel 5, using API 27. I've tried a couple of different emulators with different API versions but it behaves the same. I understand the error is indicating I need to provide a IP and port, but not sure exactly where to configure this, or if that's exactly what needs done.
This additional information is provided in the output, but also not sure where this would be configured, or as part of the command to run:
You must select an external-facing IP for the dev server that your
device or emulator can access with the --public-host option.
Note, this does work if I open my app from Android Studio and run it on the same emulator from within that IDE, so this is something specific to VSCode. Any idea on what I need to do to get this emulator to launch please?

Expo can't install Expo Go on Android Emulator

I have just installed an Android Emulator - which is Pixel 4 API 28 - on my Windows 11 computer. I have a project in Expo and I want to test it on Android Emulator. For this, the Expo needs to install Expo Go on Emulator to load my project. By default, it installs automatically when I request for installation by pressing a on my terminal. It detects the connected and available devices on my computer and installs the application.
But for me this does not happen. Instead of installing automatically, the terminal prints me this:
› Opening on Android...
. Learn more: https://expo.fyi/authorize-android-device_4_API_28
This link leads to a 404 page of Github but if I remove the "_4_API_28" part from hyperlink it leads to "Authorize Android Device" page from fyi. This page guides how to reset USB debug permissions of my device to allow my computer to get debug access. I have already did that on my android emulator but nothing changed, it still prints that message.
Is there anything I can do to solve this issue and install Expo Go on my android emulator property?

Android studio: Error while installing apk

When I launch my virtual device ,it launches but my app doesn't show in AVD.
I update all the plugins and platforms required..after some time android studio given this error as following : Error while installing apk.
Please, solve my problem why this is happening, I'm suffering from 2 days.:(
Make sure your emulator up and running.
Also you can try running it on to your phone the process is simple,
Go to android setting=>About=>Click on build varian 7 times to become developer.
2.go to developer section and enable the debugging mode.
3.now if you are on window pc you have to download google usb driver and for MAC you can directly connect and you are good to go.
Make sure that you should uninstall all the applications that were developed by you in the emulator. After uninstalling all the applications that were build by you in the emulator, then clean project, run it again.Let me know if this works out.
Have you tried increasing the adb connection time out on the AVD?
To test this, first launch the avd and make sure it is turned on and running. Then try to build your application and install the .apk onto the device.

Running a Cordova project on WP8 in VS2015

I've just started a blank Cordova project on Visual Studio 2015, the intention being to use it to develop mobile apps in the future. I've been able to get it to run in the emulator on Android and even onto an iOS device (through a Mac), but I haven't been able to figure out how to run straight onto a WP8.1/Android device, or on a WP8 emulator. When I try, I get this message:
Error running one or more of the platforms: Error: cmd: Command failed with exit code 2
You may not have the required environment or OS to run this project
The Android device also says, above that:
ERROR: Failed to deploy to device, no devices found.
There's very little documentation online, and because it's all so new, Google hasn't been particularly enlightening. It's possible that I'm missing some software, but I don't know what.
For the devices, it could be that I'm supposed to select the device from a list somewhere, but I can't see anywhere that could be. For the emulator, I'm assuming I'm missing software, or a setting is wrong on my PC, but have no idea what it could be.
To fix the issue with WP8:
I had been playing around with different versions of VS... un-installing and re-installing 2013 and 2015 and eventually hit the same issue as you.
The solution here worked for me:
No Emulator lists to deploy windows phone app
I do not have an android phone to test with t the moment, so I have not seen the android device issue.

Phonegrap stalling on "trying to install app onto emulator"

I installed phonegap CLI on my Mac OSX 10.7.5 and used it to create the default "Hello World" app. I then issue the command phonegrap run android -emulator. This runs through the steps and then stalls at the point of "trying to install app onto emulator." The Emulator loads and is running as normal and I can navigate the emulator perfectly fine but the terminal just stalls and never actually installs the phonegap application. Anyone ran into this issue?
Yes, I ran into the same issue but on Ubuntu android emulator. The emulator started fine but the application actually not installed. I don't know why it happened. I googled around and someone said it might caused by the project name, you couldn't use space and dash in the project name. But it just doesn't work for me.

Categories

Resources