Xamarin.Android Deployment Error using Android Virtual Device - c#

I am trying to setup a development environment in Visual Studio Community for development with Xamarin.Forms. In order to make sure the Android Emulator was working, I followed the QuickStart Xamarin.Android tutorial found here.
When I Start Debugging with any number of Virtual Devices the output is always the same; the application does not show up, but the AVD successfully starts up and I can also successfully interact with OS; when trying the close the AVD (with the x icon on the top right) a pop-up dialog appears saying "There were Deployment Errors. Do you wish to continue? Yes\No". The frustrating part is that no matter my response there is absolutely no useful error informations, or warnings or messages for that matter. You may think this is a duplicate question but it is not. I have had problems with a similar problem in which the fix was to downgrade my Android SDK BuildTools to a version lower than 24.0. The was to circumvent an upstream bug that provided the error message: java.lang.UnsupportedClassVersionError blah blah blah. The problem here is I get NO error and my highest version Build Tools are version 23.0.3 which should be fine. Here is a pic on start-up:
AVD
Unfortunately as I am only a begginer user I am not permitted to post more links and images. Apologies for the images as links I am still only permitted to post images in this way.
Thank you for taking the time to help me out.

Hi anyone with a similar problem, this is what worked for me in this particular case. I started the AVD before starting Debugging, the application then showed up in the emulators device menu and everthing is working. I have been stuck with this problem for Five whole day trying dozens of things. Pheeeeuuuuuuw!

Related

Sysgic Fleet IntegXamarinDemo3D - won't get GPS fix

I compiled the Sygic Fleet example "IntegXamarinDemo3D" with Visual Studio 2019.
I am running it on a Samsung Galaxy T2 tablet running Android 7.
What works as designed including getting a GPS signal:
Sygic app for Android.
Sygic Truck app for Android.
The Java example apps that come with the Sygic Fleet SDK
Any other app using GPS
What doesn't:
This sample app, "IntegXamarinDemo3D", once compiled, starts up as designed, shows the map, and all functions work BUT Sygic shows "No GPS signal" and "Navigate" requests what to use as a starting GPS location. The apps mentioned above have no problem nor does Google Location Services which I use in several apps including my own embedded Sygic app which also shows the "No GPS Signal" problem.
Since the same Sygic library appears to be used with all the examples, this seems to have something to do with the processing of the SygicLib.aar to SygicBindings.dll during the VS 2019 compilation but I can't find what it is.
My whole app design on the Embedded support in Sygic Fleet, Android, C#, and VS2019.
Has anyone encountered this, or better, have any idea how to fix it.
Jim
After a couple weeks of searching and trying things, I found the solution this morning by looking inside SygicLib.aar at AndroidManilfest.xml.
In the application AndroidManifest.xml, I had to insert the following line just prior to the other lines.
<service android:name="com.sygic.aura.feature.gps.LocationService"/>
Jim

"Repair" Android SDK Manager in VS 2019 failed

I'm trying to write an app in Xamarin for my company. The SDK manager keeps failing to install everything, seen in this screencap of results.
"Operation failed: Downloading Android Emulator - "The decryption
operation failed, see inner exception.""
Has anyone else had this problem and worked it out? Or at the least how can I look up this inner exception for more info? Any help is appreciated, I've been stuck on this for days. I'm still very new to programming so please explain things to me like I'm 9, thanks.
Edit: I can't really provide more details because I haven't done anything so far. I try to follow this tutorial but when I open the SDK manager, it asks me to Repair, which fails with the messages in the screencap. My project is still basically blank at this point. What few forum posts I can find that are at all relevant refer to a different problem that happens to have the same error message.
I've tried starting over on another computer. No dice.
The suggestions still didn't help, but I managed to configure and connect my phone and am using it as a test platform rather than the emulator. Takes longer, but at least it works.

Xamarin PCL Android app suddenly crashes in release mode

My Xamarin (PCL) Android application suddenly randomly crashes when it released. It sometimes happens even when you are not currently using it and then message that app stopped working appears.
I wonder, is there any way to track whats going on, maybe there are some logs which I could have a look, or anything else to find out what the issue as I said it randomly happens and hard to find the problem.
Many thanks in advance.
A fast solution would be to plug your device and use the Android Device Monitor to see if it print out something on the device logs. A more reliable solution would be of course to integrate a crash reporter system like what the others have suggested or Crashlytics.
You might need to add a crash reporting tool like HockeyApp or VS App Center, or wire up your own global exception handler

WP Silverlight 8.1 App - Reminder not launching app when touched

Im having problems getting the Reminder notification to launch my App once it's touched. Through the MSDN step by step guide and documentation found HERE, I know that, if the user does not touch any of the buttons (snooze/decline) but touches the popup itself, the Uri defined in the reminder should be opened inside the App. However, once I do that, not even the App itself is launched, let alone the specified Uri.
To make sure the problem wasn't on my App, I've created a new application and copied the exact code found on the page linked above, and while it does schedule a Reminder, once it pops up, touching it only makes it disappear, still not launching the App nor the specified Uri (which exists, yes).
I've already searched a bit around here, and even though I've found a couple of questions similar to what I'm asking (such as this one), it relates to WP 7, while Im having problems with WP 8.1.
The user in the previously mentioned question figured out by himself that one needs to have the app closed for the popup to launch it at the specified Uri. However, even doing so, nothing happens with me, both on the emulator and the device. I have even removed it from the suspended/previously used apps, but still nothing happens.
I have also found this, but nobody answered, and I don't have enough rep to comment on his question asking if he found the solution :/
I'm using VS 2013 Professional Update 3, Windows 8.1 Pro 64 bits, The Windows Phone 8.1 SDK and Emulator and a Nokia Lumia 620 with Windows Phone 8.1 on it. My apps are Windows Phone Silverlight 8.1. If anyone wants, I can link to the binaries for the test app I've built, but it's really a copy & paste from the tutorial from the first link I mentioned.
If anyone could help me on this, I'd reeeeally appreciate, because I feel like I'm missing something really small and stupid, but can't figure out what. Other than that, it just seems like a bug on WP 8.1.
Thanks in advance, and sorry if it's an already solved question, but as you can see, I tried to find the answers and couldnt...
Just wanted to say, to whoever finds him/herself struggling with this problem, that I - sort of - solved this problem.
I got in touch with a Microsoft Developer Evangelist who told me that indeed, this feature was removed from the 8.1 API. He refused to admit it was simply a bug, even though he agrees on that fact that the "Uri" property still being there is confusing. I'm not sure whether to believe him or not on this matter (I still think it's a bug), but at least I found out the problem was not me.
In the end, the only viable solution was to convert the whole project back to WP 8.0. Since Visual Studio does not allow one to do it by simply editting the project file, I had to copy all files to a new project by hand. Luckily, there were no major issues while doing so. Now the "go to URI" behaviour works just fine!
Hope it helps someone :)

iOS - Error on publishing iOS application from Xcode

I want to publish our iOS application to iTunes using Xcode but I get the following errors.
Your application contains non-public API usage. Please review the errors, correct them, and resubmit your application.
The app references non-public symbols in Payload/XXXXXX.app/XXXXXX: NSZombieEnabled if you think this message was sent in error and that you have only used Apple-published APIs in accordance with the guidelines, send the app's nine-digit Apple ID, along with detailed information about why you believe the above APIs were incorrectly flagged, to appreview#apple.cpm. For further information, visit the Technical Support Information page at http://developer.apple.com/support/technical.
We use Xamarin studio to code the application, before this we published our application many times without any error, but we cant update it to new version, and in this new version we only changed some fonts and colors and I think this errors are not correct.
I know that there is some same problems for others and I read all this questions and asnwers but I cant fix the issue.
I enabled NSZombie in the settings but nothing changed.
Please let me know if you need more informations to help me solve this issue.
Regards.
You're trying to publish a debug build.
Uncheck "Enable debugging" in the project's iOS Build options.
Turn off zombies, and search for underscores in your code (its going to be a pain) to find uses of private API. If it doesn't work, contact apple.

Categories

Resources