I am trying to work on a cross-platform mobile app using xamarin with visual studio 2015. However, after downloading what I think was all of android sdk/tool, I am getting the exception from the screenshot.
I read multiple if not most of "cannot load assembly" problems from Googling, but most of them have associated file url/name while I have got none of that.
Really desperate to know if anyone had come across this since this is my first time using visual studio & C#, and I am overwhelmed by the amount of new things I am learning.
Thanks
Aloe
API 24 is not fully supported in the current stable Xamarin release. It is only fully supported on a web Preview. See:
https://developer.xamarin.com/guides/android/platform_features/introduction-to-android-n/ .
So use API 23 instead and I would uninstall API 24.
Also do not use the android sdk build tools version 24 as that has been having issues as well. See:
https://releases.xamarin.com/technical-bulletin-android-sdk-build-tools-24/
Related
When I am downloading Visual Studio 2019 it shows me this:
Visual Studio opens and works, but when i am working on xamarin and try to install these components using the Android SDK Manager it fails to download them.
I searched the whole internet for solutions but none of them worked, I even tried to disable TLS 1.3 but that did not work either.
if you have any insights about this problem please inform me
thank you in advance
for the future if some one encountered the same problem. after a lot of experiments i found out that it will work properly if you use VPN
The reason i think is that there are some Reagons that are banned from useing google and microsoft services, so VPN will get you through that
I am developing an app with VS 2019 for Windows, using Xamarin (version 3.6). My app loads images from an external source (my web server) and displays them to the user.
I built and released the Android app about a month ago, having no problems with any of the external images. Since then, I've been making updates to the project to get ready for an iOS release.
A couple days ago, I ran the project on my two android phones (both of which updated themselves recently) and now the app does not display the external images on either phone.
I am referencing image source by http, not https (makes no difference either way).
More information: When I install the app from the Google Play store (which I deployed there about a month ago), everything works fine. It's only when I try to debug from Visual Studio that the images fail to display.
Has anyone run into a similar problem?
This apparently was caused by updating my Visual Studio version. I had been using VS 2019 for Windows, and had been on an interim version (As of December, they were still in beta, I believe).
I found a suggestion in another thread to update to the last version of Xamarin Forms. I did this (version 4.4....). I had to go through some pain with the Android support libraries (apparently they are no longer needed or supported, as of December 2019). Once I got everything to compile, my images started showing up again.
There are lots of suggestions on various sites for problems similar to this, including some saying to use TLS 1.2 and Native HttpClient, but for me the Xamarin update worked. A bonus -- I got the new XAML hot-load feature, which is pretty cool.
On running a Xamarin Android application in debug mode, I am getting the below error:
System.MissingMethodException: bool
System.Collections.Generic.Stack`1.TryPop(!0&)
And it is happening at the below call in the application for the Unity based dependency injection code:
this.Container.Resolve<T>();
There is no more stack trace data is also coming out for this issue.
Surprising thing is that the same project is working fine in VS 2017 (15.7.4) and not in a machine I have with VS 2017 (15.8.8).
Any possible solutions or leads for solving this will be helpful.
UPDATE:
I just downgraded my VS 2017 to 15.7.6 now and I am getting the same error still with that too.
WORK AROUND:
Once I changed targeted Android version of my Xamarin Android csproj in the Application Manifest to 5.1, I am able to get through my app in debug bypassing this issue. But, not sure what exactly solved by that. But, still it does not work in any targeted version above 5.1.
It will be great if a permanent solution can be identified for this issue even in higher Android target versions.
I am using Visual Studio Community Edition 2015 with Xamarin and I can't run my Android project successfully. It doesn't look like the android objects are getting created in the \obj folder. An error gets thrown that the packaged_resources doesn't exist. I notice that alot of other files don't get created in the \obj folder. The Emulator starts fine, but my project is not loaded in the Emulator. So I wonder, does Xamarin not work with Visual Studio Community Edition? I don't see any minimum requirements on the Xamarin website.
You are using a preview Android SDK build-tools version(preview 24) that we might not support quite yet :)
You can change your build-tools version via the $(AndroidSdkBuildToolsVersion) property.
i.e.
<AndroidSdkBuildToolsVersion>23.0.3</AndroidSdkBuildToolsVersion>
Further documentation
https://developer.xamarin.com/guides/android/under_the_hood/build_process/#Packaging_Properties
Xamarin is totally compatible with Visual Studio Community edition, so this may be indicative of a different problem. I can think of a few possible causes, but to confirm anything I would need to see a copy of the build log, preferably the full diagnostic variant.
If you are unsure on how to obtain this, there is a guide here: https://developer.xamarin.com/guides/android/troubleshooting/troubleshooting/#Diagnostic_MSBuild_Output
Thanks!
using Android Studio for development. Last week I discovered really neat feature in IntelliJ IDEA IDE, which when debugging Java app shows listing of variables next to the line of code. It is really helpful.
I have been wondering if the same option can be enabled in AS, since it uses the same core? Anybody knows? I would really love to use it in AS as well.
Here is screenshot what I am talking about.:
Android Studio 1.2 Preview 1 has been released just this week, and is the first version of Android Studio based on IntelliJ 14.
Since the feature you're describing was introduced in IntelliJ 14, Android Studio 1.2 will contain this feature as well:
Please note that this is an alpha release, so expect to encounter bugs.
That's a new feature of IntelliJ IDEA 14, as you can see here.
Android Studio is based on IntelliJ IDEA 13, so currently it is not possible to have such feature. Anyway if you want to have it you can always download IntelliJ IDEA 14 and use the Android plugin, which covers the same funcionality that Android Studio does:
From Jetbrains FAQ:
When can I get the Android Studio features in IntelliJ IDEA?
The EAP of IntelliJ IDEA 13, which includes all of the Android Studio
features except for the redesigned new project wizard and the App
Engine cloud endpoints integration, is available now. The remaining
features are going to be integrated in the coming weeks.
See more at: http://blog.jetbrains.com/idea/2013/05/intellij-idea-and-android-studio-faq/#sthash.OPJSeIA2.dpuf
To Download this plugin in IDEA 14, go to Settings, Plugins and then Search for Android Support:
Android Studio Preview has recently been updated to use IntelliJ IDEA 14. If you want to get the new updated make sure you are set to receive updates from the Cannery channel.
To do this go to Android Studio > Check for updates...
Then Click the Updates text and select the channel you wish to receive updates from.