Just installed the latest update Version 1.14.0-v.2018.11.15.3(latest). Install updated Nativescript CLI to 5.01, but on starting Sidekick I now get an error as per the title of this post followed by VirtualBox.app No such file or directory.
Thank you for bringing this issue to our attention.
The reason why you get this error when opening an app in Sidekick is because Sidekick tries to get the emulator images available on your machine at this point and fails. This is related to a feature we introduced recently - you can now start an emulator from Sidekick UI.
Having said that, we'll resolve the issue by moving the code that gets the emulator images to execute when you actually open the emulator images dialog - that way, you will not get a confusing error initially, but will still get the errors, if any, if you want to use the new feature and there is a problem.
Related
I noticed that the NS team has updated the Nativescript Preview app. The version history says that the last update was in 2020. With the recent update, the app wouldn't scan the QR code from play.nativescript.org and render it on the preview app. Instead, it is loading an example app on the preview app. I tried downloading the codebase and running it locally using ns preview but get an error (pasted below).
I am concerned since many of my sample apps are now in play.nativescript.org and I am not able to run them. Anybody else facing the same issue? If anyone has a resolution, please share. Your help is much appreciated. TIA.
Error when running ns preview
I have a problem when I want to build my Nativescript app on an Android emulator.
So the first thing I've done is tns create my app with an --ng flag for the angular framework. After that i try to run it on an emulator and the last message I've get before the error is that it is "Succesfully installed on device with identifier 'emulator'".
I've tried the whole https://docs.nativescript.org/releases/upgrade-instructions and got stuck at upgrading typescript and angular dependencies because it says it does not contain a package.json file.
I've run some NScore applications succesfully on the emulator but this is my first NG app and I've hit a wall. I've saw the firebase thread too about this particular theme but I don't use firebase for my app.
I had the same error trying to run nativescript on a particular device. check the storage of the device you are trying to build on.
In my own case it was storage issues that lead to that error.
In my case, the problem was a secondary space in Mi Note 7. For some reason, nativescript was installing the app in the second space (even when first space is active)
I got this error, by Updating App ID only in package.json
To resolve the issue, I manually updated the App ID in the following file.
App_Resources\Android\settings.json
{"appId":"org.nativescript.appid","minSdkVersion":null,"targetSdkVersion":null}
I can't launch my app anymore on Android. The iOS counterpart seems to be fine.
The full error is:
ADB0000: Could not determin the installation path for package.com.company.appname.
'adb shell pm path com.company.appname' returned.
It was working. I pulled some changes from the repo, none of which should have affected any app properties. Actually it was initially launching, but I was getting some odd behavior within the app, so I uninstalled the whole thing off of my phone. Now I cannot launch it at all. What I could find about this error was that my AndroidManifest.xml might have a typo, but I couldn't find anything that stuck out. And like I said, there shouldn't have been any changes in there recently. Any help would be greatly appreciated.
Steps I have already taken:
1. Clean and rebuild
2. restart VS
3. delete obj and bin folders
4. search for solution on here and xamarin forums
UPDATE:
I just successfully launched it on another android device. So it seems to be a problem with my Pixel 2 XL. How do I make sure all traces of the app are gone so I can start fresh?
This usually happens when you have more than one user in an Android device (I still cannot figure out why is this).
As mentioned in the comment by using the adb uninstall full.package.name command it will uninstall the app.
But there's another way which does not require command line or nothing related to that.
If you go to the Settings -> Apps and Notifications on the Android device you will be able to uninstall it from there.
Let's use the UnoQuickStart.Droid app as example here. As you can see it's already in the same state as it was yours.
Once in the App details both Uninstall and Force Stop are disabled. But do you see those 3 dots image at the right upper corner? Click on it.
This will bring you a context menu with a single option "Uninstall for all users". You can click on it with confidence.
As expected, a warning message telling you what's gonna happen. Just click "Ok".
As you can see the App is not longer installed and you will now be able to install it again.
Hope this helps.-
As per apineda's instructions, using adb unistall com.company.appname fixed the problem. I was able to get to the ADB location by navigating through Visual Studio -> Tools -> Android -> Android ADB Command Prompt.
Before I did that, I looked at the App list for my phone, which listed the app, but apparently not installed for this user. The Uninstall and Force Stop buttons were disabled and several of the fields just said loading... or something like that.
While running my app on iPhone, I needed to view the database contents. So I selected Devices in Xcode and chose my device. Thereafter, i selected my app and clicked on the Settings button which shows 3 options: Show container, Download container and Remove container. On clicking the Download container option, I was asked where I want to store the container. After selecting the location, I am getting the following error: An error occured while attempting to download the container from application "MyApp".....
On selecting Show container option, a list opens up but there is no file inside it.
The same problem occurs with other apps too that I run using Xcode.
Any ideas as to why this happens and how to fix it?
I just rebooted my iPhone. That seems to fix it! Really weird, but works.
I have been having the issue every now and then especially after the phone has been connected to Mac and Xcode for about an hour.
Sometimes, just rebooting the phone isn't good enough, you'll also have to quit Xcode and start again after rebooting the phone!
I also had this problem yesterday, and the solution was a mismatched version of iOS 10 and Xcode 7. After I did the App Store upgrade to Xcode 8, I was able to download successfully.
In my case the issue was due to the fact that the version installed was a release version.
After installing the "Debug" version, the download worked fine.
Decided to give Xamarin a shot. Installed xamarin, launched Visual Studio, created a new blank android project, ran it, created an account, checked the 'business trial' option.
First time I ran it I got a popup saying could not contact device.
Second time I ran it I got an error saying Could not connect to logcat.
Third time I ran it the emulator appeared and showed me this:
I waited a while but nothing happened.
I tried stopping it and running it again, I got the first error again.
In between these steps, I have made no changes, just stopped and started.
Any idea why it's being so useless? I can't seem to do anything with the emulator because stuff is too big to click. Any advice welcome, it's a bit off putting that this is my first experience with Xamarin!
You really want to try running the latest Xamarin Android Player. You can find the downloads for both Windows and Mac here: https://xamarin.com/android-player
The instructions are pretty precise, should you have any issues during the installation: https://developer.xamarin.com/guides/android/getting_started/installation/android-player/