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
Related
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.
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 have a pretty simple android application written on Xamarin and running on two different virtual devices: on Genymotion Google Nexus 5 - Android 5.1.0 and Genymotion Google Nexus 6P - Android 6.0.0. After some debugging I've discovered that Mkdirs does not create the directory on my virtual device. How can I get the reason why? My guess is that my app does not have permissions to save the files or create directories on device's external storage even though WRITE_EXTERNAL_STORAGE permission is set to true. Are there some changes in Android 6 permissions?
Android 6.0 introduced Runtime permissions. In addition to declaring the permission on your manifest, you need to request the permission from the user at runtime.
More info and tutorials here: http://developer.android.com/training/permissions/requesting.html
For Xamarin specific information: https://blog.xamarin.com/requesting-runtime-permissions-in-android-marshmallow/
I have written a game using C# monogame android. I want to first transfer it to my personal phone and then upload it to google play possibly? How could i do that ? I saw that it is 25$ is this all the fee there is to it ? Can someone reference a blog to me, or guide me through, that would be helpful. All the information i found on google was kind of confusing.
#Shiro If you have APK file (Android Package executable file) then you can directly copy it on your phone and install it.
Which IDE are you using to develop. Intellij, Android Studio and Eclipse. Connect your phone to the system, enable the debugging in settings.
Click on the Run button, it loads the app to your phone.
You can also use the emulator (using AVD manager) in all the IDE mentioned above. Genymotion(an external emulator) can also be used
Go to your project "YourProject"\bin\Debug and copy yourprojct.apk file to your phone and install it.
For google play watch this tutorial.
I have Mono for Android trial version and am having some trouble with the MapsAndLocation demo.
I start up the emulator, yet when I select 'Run->Start Without Debuggin', I get the following error:
C:\Users\Simon\Documents\Xamarin\MapsAndLocationDemo\xamarin-monodroid-samples-d76baf3\MapsAndLocationDemo\obj\Debug\android\src\mapsandlocationdemo\MapWithOverlayActivity.java(33,33): Error: package com.google.android.maps does not exist
extends com.google.android.maps.MapActivity
As well as another 20 errors.
What do I need to fix this situation. Do I need to install an additional package? If so, what is it, and where can I find it?
thanks
Please ensure you are deploying to an emulator that targets Google APIs.
To do this create a new emulator in the Android Virtual Device Manager and change the target from "Android 2.2 - API Level 8" to Google API eg. "Google APIs (Google Inc.) - API Level 16".
If you cannot see any Google API targets you will need to install one by using the Android SDK manager.