Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 9388 [details]
Error installing CardView NuGet
I'm on Visual Studio 2013 Pro with Xamarin 18.104.22.168, Xamarin.Android 22.214.171.124, and NuGet Package Manager 2.8.5096 on Windows 7 Pro x64.
I did the following to recreate this issue:
1. Created a new Blank Android app.
2. Set the Minimum and Target Android version to API Level 21 (Android v5.0 support).
3. Set to compile using latest platform (API Level 21).
4. Ran the Android SDK manager and ensured that all updates are installed.
5. Right-click References > Manage NuGet Packages > Search for CardView > Install.
6. After I click the CardView Install, I get the "Could not install package" error (see attached screen shot for details).
After some digging and experimentation, I found that adding this to the .csproj file
cleared up the problem and allowed the install to work:
It looks like this element is added to the .csproj when you create the project in Xamarin Studio, but it's NOT added when the project is first created in Visual Studio. If I take an Android 5.0 project that is created in Xamarin Studio, open it in Visual Studio, then try to add the CardView NuGet, then the install works.
We have tried to reproduce this issue and able to reproduce. After we click the CardView Install, CardView NuGet fails to install.
Package Manager Log: https://gist.github.com/AkhileshKumar01/3cb9551f9ec4eaf8dbe6
IDE Log: https://gist.github.com/AkhileshKumar01/a0a4f404d2cceeb9261b
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Xamarin 126.96.36.199 (d6a2cae)
Xamarin.Android 188.8.131.52 (49a04b966feb40dfdba49d57ba16249b66d606a6)
Xamarin.iOS 184.108.40.206 (eb24bdcf5cba2c12b673a07e0a8cce368b9563b3)
As we've introduced several improvements around this area, I'll mark the bug as resolved fixed.
Please feel free to reopen it if you can still reproduce the issue with current bits.