I am trying to generate an apk from xamarin Studio but some Android options under Build are not coming.
This is the screenshot of my project solution
Build option is marked but some Android options are not coming which are required to generate apk
Xamarin Studio
Version 5.9.7(build 22)
This screenshot shows actually what should come under the build option
I am currently developing a project and I am currently facing a big problem as I cannot generate apk in xamarin studio as some options are not coming.
Please friends help me out.
You selected your solution, not your project. If you select the project instead you will have other options.
Related
I have a serious problem with creating cross-platform applications.
When I'm trying to create the project the following error displayed:
How to fix these issues?
I solved the problem,
The problem is with UWP project. This project is trying to restore packages from api.nuget.org but failed every time.
I removed this project from the solution and the entire solution is working perfectly now.
Note: UWP project can work separately, but it can't work with Android and iOS projects. I still don't know what the problem is, I reported this issue to Visual Studio report center.
But for now, I need only Android and iOS projects.
I just installed Visual Studio 2017 and I'm trying to work on a Xamarin.Forms project. I cloned the existing repo and could build and deploy the iOS app just fine, but when I try to build the Android app it throws the following error:
Severity Code Description Project File Line Suppression State
Error The file "obj\Debug\android\bin\packaged_resources" does not exist. [Solution Name].Android C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 1794
Everything works great in Xamarin Studio on Mac.
I created a clean Xamarin.Forms project in VS 2017 to isolate any particular solution issues and am getting the exact same error.
How can I fix this?
This issue generally occurs when the correct Build Tools aren't correctly installed.
Open up the Android SDK Tools. Here is where it is if you are using Visual Studio.
Make sure you have the latest SDK Tools, Platform Toosl and Build Tools. Delete any preview or old build tools. I would use the Rev. 25 ones. Rev 24. had a few issues, I would make sure they are uninstalled.
Then make sure you have the correct SDK downloaded for whatever you are trying to compile for. E.g. 7.1, 7.0, 6.0 etc.
Then near the bottom I normally have at least
Android Support Library Google
USB Driver
After install, close all VS instances and start it up again.
I use visual studio 2015 with xamarin android for my project. I build and debug on a Samsung SM-G389F(Android 6.0 - API 23). Everytime I build my project and deploy it to my device it will not override the previously build app. I have to manually delete the existing app in order to see some changes.
Is there a way in visual studio to let the app be successfully deployed?
Is this a bug or are my settings wrong?
thanks.
Sounds like you might have Fast assembly deployment enabled and it's not working correctly. Here's what to do:
Go to project's properties and Android Options tab.
Turn off Use Fast Deployment
Uninstall the app completely from the device.
Rebuild the whole project (rebuild also does cleans the project)
Try to deploy again
I have a problem with creating, building and deploying (still on Android) Xamarin/Xamarin.Forms projects on Visual Studio Community 2015
Version v14.0.25431.01 Update 3, Xamarin v4.2.0.680.
I can't build sample opened projects like MvvmCross or XAML examples. What I've done:
Clean and Rebuild
Update Xamarin extension
Update Nuget packages with removing dependenties
Close and reopen VS
Tools -> Clear MEF Component cache
List item
The most common:
IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.
Who know how to solve it?
P.S: Solved by reinstalling Xamarin extension, Android SDK (NDK, emulators, etc.)
I had a host of problems with Xamarin under VS2015, e.g. locked files, compiler could not find files etc.. They all disappeared when I transferred my solution from a network drive to a local drive.
When I create a Xamarin.Forms application using Visual Studio Community 2015 Community on Windows 8.1 it shows me this error on load:
A problem was encountered creating the sub project 'App1.WinPhone'. This project requires a Visual Studio update to load. Right-click on the project and choose 'Download Update'
I've installed all updates available and trying on a newly installed Windows.
Note: I had this error in Forms.
How can I fix this error?
Note: There isn't a Download Update option in Solution Explorer.
Navigate to where you saved the project files that you created in Visual Studio. Default location is C:\Users\PSDan\Documents\Visual Studio 2015\Projects.
Open the project folder that you are experiencing problems with and navigate to C:\Users\PSDan\Documents\Visual Studio 2015\Projects\test\test\test.Windows folder. Inside this folder is a file called test.Windows.csproj.
Right click on that file and open with... using Visual Studio, by doing this it should detect the missing package and in my case automatically prompted to install the missing package.
I've been seeing similar errors for .Window or .WindowPhone and what I've observed is that it is due to missing SDK. Same might be the case with you.
Do you see App1.Droid appearing in the solution? (I guess NO)
Go to file explorer and locate App1.Droid.csproj (..\App1\App1.Droid\App1.Droid.csproj) and open this in a new instance. There it will pop up "Install Missing Feature" dialog and you can follow the steps to install missing components.
If your issue is the same as here:
Project required a Visual Studio update
then you may try and see if this solution works:
[Cause is] a mismatch of the target framework version and profile in the .csproj file. Despite the target framework being correct in the project Properties, they were not being correctly saved for whatever reason. Thus, when trying to install a utility library from nuGet, it left my project in the state you described.
The solution was to go by this site:
Framework Profiles in .NET
and find the correct combination, then manually edit the .csproj file to adjust <TargetFrameworkProfile> and <TargetFrameworkVersion>.
Installing Visual Studio Update 3 with selected features "Windows 8.1 and Windows Phone 8.0/8.1" and "Cross Platform Mobile Development" solved the problem for me.
Uninstall Xamarin completely, and reinstall it. That happened to me as well. I would uninstall Visual studio too. Install that first, then install Xamarin.
Edit: I know this sucks to do, but it was what the Xamarin team had me do to resolve it. As far as I know this is the official fix as of last week.