I just downloaded Xamarin in Visual. Following some basic tutorials, I made a blank Mobile App and tried using the emulator but whenever I try downloading a new device after some point in the download I get the
System image download error. The decryption operation failed, see inner exception.
I tried reinstalling the whole Visual Studio but it doesn't help either.
Related
I am trying to deploy my Xamarin.Android application from visual studio to my smartphone which is Huawei P10. During compilation a popup shows up:
After you close the popup an error shows up:
Severity Code Description Project File Line Suppression State
Error XA0136: The 'run-as' command failed with 'run-as: package has corrupt installation: com.companyname.app1'.
The currently installation of the package in corrupt. Please manually uninstall the
package from all the users on device and try again. If that does not work you can disable Fast Deployment.
Fast Deployment can be disabled in the Visual Studio project property pages or edit the project file in a text editor and set the 'EmbedAssembliesIntoApk' MSBuild property to 'true'.
Tools and Devices used:
Visual Studio 2019 version 16.10.1
Xamarin Android
Deploy to Huawei P10 Android 9.0 API 28
Any suggestions pls on what is the problem.
Thanks
UPDATE: If you disable Fast Deployment works fine
According to Xamarin, you have to activate the developer mode for this. In addition, debugging via USB must be approved. You can find the exact statement here on GitHub. If you don't know how to activate the mode, you can find instructions here.
Alternatively, if all these steps did not work you can disable 'Fast development'. Either do this in your project or via Visual Studio.
Fast deployment is known to fail on devices which block run-as, which often includes devices older than Android 5.0. Fast deployment also fails for system applications (android:sharedUserId="android.uid.system") since run-as is also blocked for system applications.
If these solutions work let me know!
I also got this issue when trying to run the app in emulator. But I fixed it by changing to new android emulator
I'm building a Xamarin app using visual studio 2017,I added a button and ran my application just for testing the emulator , I've tried all the emulators and created my own one , they all gave me the same error , Nothing appears on the error list , but a message popup says Deploy failed ,also I've tried to debug on my mobile with usb and the same error appeared, I've tried so many solutions ,nothings changed , any help please?
Here's a screenshot of the output window
Thanks.
check if you don't have multiple versions of the java jdk, delete Bin ond Obj folder of the android solution clean and build again, also try to update to vs 15.6.6
I am new to mobile development. So i am using xamarin for this purpose. I have following this sample code as a starter in mobile development.
I am using visual studio 15 for it. I have followed all the steps mentioned in sample code. For now i want it to run only on android, so i have chosen .Droid as my Startup project, but on Debug Target i cannot find Xamarin Emulator for android all i find is the android emulators list. Please see the image bellow
While on clicking the Manage Virual Devices i get the following list of devices as shown in bellow image
I have searched many articles on it but couldn't find any solution
Any help would be appreciated
Xamarin Emulator for android isn't a specific emulator.
The android emulator's list is a list of devices for you to emulate; the virtual devices page is a list of devices/OS versions emulators that can be downloaded.
Select/Download an emulator profile in the device/size/OS version that fits your needs and run your code.
I have build an android app. My application works on the emulator, but when i export the .apk file, and test it on a real device, it just crashes instantly.
I already tried unchecking fast deployment, and shared runtime. I already checked the internet permission because i have a webview. The device that I'm using is android 5.0 and the app supports that.
Try to debug the app in your device and check the log. It will be help you to find out the actual issue.
You said in your app you are using images so it may be crashes due to memory out of exception.
I get this error
Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.FileNotFoundException: Could not load assembly 'FormsViewGroup, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
help me...
I am assuming you do not have Google Play Services installed on your Android emulator which is required for Google Maps to be used/displayed. (more details in your question would help, code/stacktrace/...)
Test your app on a physical device
Or
(Assuming you are using the Xamarin Android Player, but this also works on Genymotion and VisualStudio Android emulator)
Install Google Play Services on your emulator:
Start the Xamarin Android Player
Download the proper Google Play Services .zip file from www.teamandroid.com/gapps/ .
Note: Make sure to download the image appropriate for your version of Android.
Drag the .zip file onto the running emulator and drop it to install the component
You will get a prompt to install the package onto the emulator which indicates the image will be restarted
Once it restarts, you will get a notification that installation is completed, and the image will now have Google Maps, Google+ and support for the Google Play store.
Note that some things do not work correctly and you may get a few errors from some of the services, but you can safely dismiss these and continue the instructions.
Next, you will need to associate a Google account so that you can update the services using the Google Play store. It should prompt you for this, but if it does not, you can go into the Google Settings and add a new account.
Once you've added the account, you can then update the Google apps by opening the Google Play store application
https://university.xamarin.com/resources/how-to-install-google-play-on-android-emulator