I faced this error after updating my Visual Studio 2017.
An error occurred trying to install required android components on
Project 'homebudget'.Project 'homebudget' requires the following
components installed on your machine:
Xamarin.Android.Support.v4JavaLibraryReference:
https://dl-ssl.google.com/android/repository/support_r19.1.zip--19.1.0Xamarin.GooglePlayServices.AdsJavaLibraryReference:
https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip-m2repository/com/google/android/gms/play-services-ads/7.5.0/play-services-ads-7.5.0.aar-25.0.0AndroidResources:
https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip-m2repository/com/google/android/gms/play-services-ads/7.5.0/play-services-ads-7.5.0.aar-25.0.0Xamarin.GooglePlayServices.BaseJavaLibraryReference:
https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip-m2repository/com/google/android/gms/play-services-base/7.5.0/play-services-base-7.5.0.aar-25.0.0AndroidResources:
https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip-m2repository/com/google/android/gms/play-services-base/7.5.0/play-services-base-7.5.0.aar-25.0.0Please
double-click here to install it.Intallation Errors: XA5209 Unzipping
failed. Please download
'https://dl-ssl.google.com/android/repository/support_r19.1.zip' and
extract it to the
'C:\Users\User\AppData\Local\Xamarin\Xamarin.Android.Support.v4\19.1.0\content'
directoryXA5209 Reason: Could not find a part of the path
'C:\Users\User\AppData\Local\Xamarin\Xamarin.Android.Support.v4\19.1.0\content\support\'.XA5207
Please install package: 'Android Support Library' available in SDK
installer. Java library file
'C:\Users\User\AppData\Local\Xamarin\Xamarin.Android.Support.v4\19.1.0\content\support/v4/android-support-v4.jar'
doesn't exist.XA5207 Please install package: 'GPS Ads' available in
SDK installer. Java library file 'C:\Program Files
(x86)\Android\android-sdk\extras\google\classes.jar' doesn't
exist.XA5207 Please install package: 'GPS Base' available in SDK
installer. Java library file 'C:\Program Files
(x86)\Android\android-sdk\extras\google\classes.jar' doesn't exist.
Please help me regarding this issue.
You could try to follow this link: Resolving Library Installation Errors. Delete the root folder of the package where the error comes from. In your case it is C:\Users\User\AppData\Local\Xamarin\Xamarin.Android.Support.v4\19.1.0\.
and delete the zip file in C:\Users\username\AppData\Local\Xamarin\zips.
You could refer to this question for more information.
Related
While installing the package Microsoft.EntityFrameworkCore.Tools for using EF in my project using Nuget, I'm persistently running into the below error. Notice I didn't get any error while installing other related packages used for EF core
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.Relational
Microsoft.EntityFrameworkCore.SqlServer
Here is the location of the file ef.exe
Basically the intention behind installing this package is to use EF command-line tools. I'm currently on Windows 10 and the .NET SDK installed on my machine is 3.1. I had previously 2 SDK's installed on my system(3.1 & 5.0). As per microsoft's documentaion, "The .NET CLI must choose an SDK version for every dotnet command. It uses the latest SDK installed on the machine by default." Therefore I went ahead and uninstalled .NET 5.0 SDK
Here are some of the solutions that I tried:
Deleting the package folder from '.nuget/packages/microsoft.entityframeworkcore.tools' & thereby the executable i.e. 'ef.exe' and reinstalling the same.
Installing the same package using dotnet cli.
Running Visual Studio 2019 as admin.
Deleted the folder "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions"
I have also tried some of the steps mentioned here on github: https://github.com/NuGet/Home/issues/1138
. Any kind of help would be really appreciated.
I have answered the detailed description of the solution here on microsoft's .NET Q&A platform.
'EntityFramework.Core.Tools' nuget package installation error
I am trying to install nuget package "Scandit" to my project.
IDE: Visual studio Mac(Xamarin.Forms 4.6.0.726)
The following is the error message.
Attempting to gather dependency information for package 'Scandit.BarcodePicker.Xamarin.5.14.5.10' with respect to project 'Modbusbutton3', targeting '.NETPortable,Version=v4.5,Profile=Profile78'
CACHE https://api.nuget.org/v3/registration5-gz-semver2/scandit.barcodepicker.xamarin/index.json
Total number of results gathered : 52
Gathering dependency information took 217.67 ms
Summary of time taken to gather dependencies per source :
https://api.nuget.org/v3/index.json - 5.27 ms
Attempting to resolve dependencies for package 'Scandit.BarcodePicker.Xamarin.5.14.5.10' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Scandit.BarcodePicker.Xamarin.5.14.5.10'
Resolved actions to install package 'Scandit.BarcodePicker.Xamarin.5.14.5.10'
Found package 'Scandit.BarcodePicker.Xamarin 5.14.5.10' in '/Users/dej.pvi/Downloads/20200506-WiFi Solution for iOS/packages'.
For adding package 'Scandit.BarcodePicker.Xamarin.5.14.5.10' to project 'Modbusbutton3' that targets 'portable45-net45+win8+wp8'.
Install failed. Rolling back...
Package 'Scandit.BarcodePicker.Xamarin.5.14.5.10' does not exist in project 'Modbusbutton3'
Executing nuget actions took 15.64 ms
Could not install package 'Scandit.BarcodePicker.Xamarin 5.14.5.10'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Can any one help how to solve this? Thank you!
As I checked Scandit.BarcodePicker github sample they are using two different packages.
Scandit.BarcodePicker.Xamarin
This package is installed only in Android and iOS project.
Scandit.BarcodePicker.Unified
This package is installed in every project.
According to your log Target Framework of your project is PCL. You might consider to convert you project to .NETStandard 2.0, because this might be other issue why you are not able to install this package. Check the link here.
I am currently working on a Open-Source Project, which has some third-party library dependencies, I have installed all of them using Vcpkg into a particular folder in my E: drive and integrated them with Visual Studio with the "vcpkg integrate install" command, and supplied the Cmake toolchain also in the IDE.
But the libraries (ie. WxWidgets currently) are not being detected while configuring the build.
I am attaching the configuration message as well as the error snapshots below.
Any suggestions regarding this, would of great help.
Thanks & Regards.
buildsnap
ErrorSnap
I am trying run my working project in another pc gives me this types of errors.
Please install package: 'Xamarin.Android.Support.Animated.Vector.Drawable' available in SDK installer. Java library file C:\Users\Administrator\AppData\Local\Xamarin\Xamarin.Android.Support.Animated.Vector.Drawable\23.3.0.0\content
I tried some of the solutions that I found on the internet, but they didn't help me.
=> deleted zip file and downloaded again.
=> deleted bin and obj folder and restarted VS
=> clean, rebuild, run
There could be multiple reasons you're having this issue:
1: Check that you've android sdk on this PC and also check that your project's sdk is properly referenced from your solution.
2: Go to project nuget packages in solution explorer and see all the android related nuget packages are installed in your project.
I was trying to install Nuget package for MonoDroid project (Visual Studio 2015):
Microsoft.AspNet.SignalR.Client
And I got this error:
Could not install package 'Microsoft.AspNet.SignalR.Client 2.2.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.3', but the package does not contain any assembly references or content files that are compatible with that framework.
Any idea to sort this out?