【问题标题】:The UTC time represented when the offset is applied must be between year 0 and 10,000应用偏移量时表示的 UTC 时间必须介于 0 年和 10,000 年之间
【发布时间】:2016-06-25 10:36:59
【问题描述】:

在 Xamarin-Studio,当我尝试恢复 nuget 包时,出现错误:

Restoring NuGet package modernhttpclient.2.4.2.
Restoring NuGet package Xamarin.Build.Download.0.2.1.
Restoring NuGet package Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0.
Restoring NuGet package Xamarin.Android.Support.v7.CardView.23.3.0.
Restoring NuGet package Xamarin.Android.Support.v7.MediaRouter.23.3.0.
Restoring NuGet package Xamarin.GooglePlayServices.Base.29.0.0.1.
Restoring NuGet package Xamarin.GooglePlayServices.Basement.29.0.0.1.
Restoring NuGet package Xamarin.GooglePlayServices.Maps.29.0.0.1.
Restoring NuGet package Xamarin.GooglePlayServices.Location.29.0.0.1.
  GET https://api.nuget.org/v3-flatcontainer/xamarin.build.download/0.2.1/xamarin.build.download.0.2.1.nupkg
  GET https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.maps/29.0.0.1/xamarin.googleplayservices.maps.29.0.0.1.nupkg
  GET https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.location/29.0.0.1/xamarin.googleplayservices.location.29.0.0.1.nupkg
  GET https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.basement/29.0.0.1/xamarin.googleplayservices.basement.29.0.0.1.nupkg
  GET https://api.nuget.org/v3-flatcontainer/modernhttpclient/2.4.2/modernhttpclient.2.4.2.nupkg
  GET https://api.nuget.org/v3-flatcontainer/xamarin.android.support.animated.vector.drawable/23.3.0/xamarin.android.support.animated.vector.drawable.23.3.0.nupkg
  GET https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.cardview/23.3.0/xamarin.android.support.v7.cardview.23.3.0.nupkg
  GET https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.mediarouter/23.3.0/xamarin.android.support.v7.mediarouter.23.3.0.nupkg
  GET https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.base/29.0.0.1/xamarin.googleplayservices.base.29.0.0.1.nupkg
  OK https://api.nuget.org/v3-flatcontainer/xamarin.build.download/0.2.1/xamarin.build.download.0.2.1.nupkg 446ms
Acquiring lock for the installation of Xamarin.Build.Download 0.2.1
Acquired lock for the installation of Xamarin.Build.Download 0.2.1
Installing Xamarin.Build.Download 0.2.1.
Error downloading 'Xamarin.Build.Download.0.2.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.build.download/0.2.1/xamarin.build.download.0.2.1.nupkg'.
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Unable to find version '0.2.1' of package 'Xamarin.Build.Download'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Build.Download.0.2.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.build.download/0.2.1/xamarin.build.download.0.2.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Sample.iOS: Unable to find version '0.2.1' of package 'Xamarin.Build.Download'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Build.Download.0.2.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.build.download/0.2.1/xamarin.build.download.0.2.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

  OK https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.location/29.0.0.1/xamarin.googleplayservices.location.29.0.0.1.nupkg 735ms
Acquiring lock for the installation of Xamarin.GooglePlayServices.Location 29.0.0.1
Acquired lock for the installation of Xamarin.GooglePlayServices.Location 29.0.0.1
Installing Xamarin.GooglePlayServices.Location 29.0.0.1.
Error downloading 'Xamarin.GooglePlayServices.Location.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.location/29.0.0.1/xamarin.googleplayservices.location.29.0.0.1.nupkg'.
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Location'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Location.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.location/29.0.0.1/xamarin.googleplayservices.location.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Android: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Location'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Location.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.location/29.0.0.1/xamarin.googleplayservices.location.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

  OK https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.basement/29.0.0.1/xamarin.googleplayservices.basement.29.0.0.1.nupkg 978ms
Acquiring lock for the installation of Xamarin.GooglePlayServices.Basement 29.0.0.1
Acquired lock for the installation of Xamarin.GooglePlayServices.Basement 29.0.0.1
Installing Xamarin.GooglePlayServices.Basement 29.0.0.1.
  OK https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.maps/29.0.0.1/xamarin.googleplayservices.maps.29.0.0.1.nupkg 1036ms
Acquiring lock for the installation of Xamarin.GooglePlayServices.Maps 29.0.0.1
Acquired lock for the installation of Xamarin.GooglePlayServices.Maps 29.0.0.1
Installing Xamarin.GooglePlayServices.Maps 29.0.0.1.
Error downloading 'Xamarin.GooglePlayServices.Maps.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.maps/29.0.0.1/xamarin.googleplayservices.maps.29.0.0.1.nupkg'.
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Maps'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Maps.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.maps/29.0.0.1/xamarin.googleplayservices.maps.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Sample.Droid: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Maps'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Maps.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.maps/29.0.0.1/xamarin.googleplayservices.maps.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Android: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Maps'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Maps.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.maps/29.0.0.1/xamarin.googleplayservices.maps.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project CalloutSample.Droid: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Maps'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Maps.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.maps/29.0.0.1/xamarin.googleplayservices.maps.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Error downloading 'Xamarin.GooglePlayServices.Basement.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.basement/29.0.0.1/xamarin.googleplayservices.basement.29.0.0.1.nupkg'.
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Basement'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Basement.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.basement/29.0.0.1/xamarin.googleplayservices.basement.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Sample.Droid: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Basement'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Basement.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.basement/29.0.0.1/xamarin.googleplayservices.basement.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Android: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Basement'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Basement.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.basement/29.0.0.1/xamarin.googleplayservices.basement.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project CalloutSample.Droid: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Basement'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Basement.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.basement/29.0.0.1/xamarin.googleplayservices.basement.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

  OK https://api.nuget.org/v3-flatcontainer/modernhttpclient/2.4.2/modernhttpclient.2.4.2.nupkg 1230ms
Acquiring lock for the installation of modernhttpclient 2.4.2
Acquired lock for the installation of modernhttpclient 2.4.2
Installing modernhttpclient 2.4.2.
  OK https://api.nuget.org/v3-flatcontainer/xamarin.android.support.animated.vector.drawable/23.3.0/xamarin.android.support.animated.vector.drawable.23.3.0.nupkg 1239ms
Acquiring lock for the installation of Xamarin.Android.Support.Animated.Vector.Drawable 23.3.0
Acquired lock for the installation of Xamarin.Android.Support.Animated.Vector.Drawable 23.3.0
Installing Xamarin.Android.Support.Animated.Vector.Drawable 23.3.0.
Error downloading 'Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.animated.vector.drawable/23.3.0/xamarin.android.support.animated.vector.drawable.23.3.0.nupkg'.
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Unable to find version '23.3.0' of package 'Xamarin.Android.Support.Animated.Vector.Drawable'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.animated.vector.drawable/23.3.0/xamarin.android.support.animated.vector.drawable.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Sample.Droid: Unable to find version '23.3.0' of package 'Xamarin.Android.Support.Animated.Vector.Drawable'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.animated.vector.drawable/23.3.0/xamarin.android.support.animated.vector.drawable.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Android: Unable to find version '23.3.0' of package 'Xamarin.Android.Support.Animated.Vector.Drawable'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.animated.vector.drawable/23.3.0/xamarin.android.support.animated.vector.drawable.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project CalloutSample.Droid: Unable to find version '23.3.0' of package 'Xamarin.Android.Support.Animated.Vector.Drawable'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.animated.vector.drawable/23.3.0/xamarin.android.support.animated.vector.drawable.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

  OK https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.cardview/23.3.0/xamarin.android.support.v7.cardview.23.3.0.nupkg 1713ms
Acquiring lock for the installation of Xamarin.Android.Support.v7.CardView 23.3.0
Acquired lock for the installation of Xamarin.Android.Support.v7.CardView 23.3.0
Installing Xamarin.Android.Support.v7.CardView 23.3.0.
Error downloading 'Xamarin.Android.Support.v7.CardView.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.cardview/23.3.0/xamarin.android.support.v7.cardview.23.3.0.nupkg'.
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Unable to find version '23.3.0' of package 'Xamarin.Android.Support.v7.CardView'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.v7.CardView.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.cardview/23.3.0/xamarin.android.support.v7.cardview.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Sample.Droid: Unable to find version '23.3.0' of package 'Xamarin.Android.Support.v7.CardView'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.v7.CardView.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.cardview/23.3.0/xamarin.android.support.v7.cardview.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Android: Unable to find version '23.3.0' of package 'Xamarin.Android.Support.v7.CardView'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.v7.CardView.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.cardview/23.3.0/xamarin.android.support.v7.cardview.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project CalloutSample.Droid: Unable to find version '23.3.0' of package 'Xamarin.Android.Support.v7.CardView'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.v7.CardView.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.cardview/23.3.0/xamarin.android.support.v7.cardview.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Error downloading 'modernhttpclient.2.4.2' from 'https://api.nuget.org/v3-flatcontainer/modernhttpclient/2.4.2/modernhttpclient.2.4.2.nupkg'.
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Unable to find version '2.4.2' of package 'modernhttpclient'.
  https://api.nuget.org/v3/index.json: Error downloading 'modernhttpclient.2.4.2' from 'https://api.nuget.org/v3-flatcontainer/modernhttpclient/2.4.2/modernhttpclient.2.4.2.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap: Unable to find version '2.4.2' of package 'modernhttpclient'.
  https://api.nuget.org/v3/index.json: Error downloading 'modernhttpclient.2.4.2' from 'https://api.nuget.org/v3-flatcontainer/modernhttpclient/2.4.2/modernhttpclient.2.4.2.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

  OK https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.base/29.0.0.1/xamarin.googleplayservices.base.29.0.0.1.nupkg 2251ms
Acquiring lock for the installation of Xamarin.GooglePlayServices.Base 29.0.0.1
Acquired lock for the installation of Xamarin.GooglePlayServices.Base 29.0.0.1
Installing Xamarin.GooglePlayServices.Base 29.0.0.1.
Error downloading 'Xamarin.GooglePlayServices.Base.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.base/29.0.0.1/xamarin.googleplayservices.base.29.0.0.1.nupkg'.
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Base'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Base.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.base/29.0.0.1/xamarin.googleplayservices.base.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Sample.Droid: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Base'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Base.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.base/29.0.0.1/xamarin.googleplayservices.base.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Android: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Base'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Base.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.base/29.0.0.1/xamarin.googleplayservices.base.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project CalloutSample.Droid: Unable to find version '29.0.0.1' of package 'Xamarin.GooglePlayServices.Base'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.GooglePlayServices.Base.29.0.0.1' from 'https://api.nuget.org/v3-flatcontainer/xamarin.googleplayservices.base/29.0.0.1/xamarin.googleplayservices.base.29.0.0.1.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

  OK https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.mediarouter/23.3.0/xamarin.android.support.v7.mediarouter.23.3.0.nupkg 2281ms
Acquiring lock for the installation of Xamarin.Android.Support.v7.MediaRouter 23.3.0
Acquired lock for the installation of Xamarin.Android.Support.v7.MediaRouter 23.3.0
Installing Xamarin.Android.Support.v7.MediaRouter 23.3.0.
Error downloading 'Xamarin.Android.Support.v7.MediaRouter.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.mediarouter/23.3.0/xamarin.android.support.v7.mediarouter.23.3.0.nupkg'.
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Unable to find version '23.3.0' of package 'Xamarin.Android.Support.v7.MediaRouter'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.v7.MediaRouter.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.mediarouter/23.3.0/xamarin.android.support.v7.mediarouter.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Sample.Droid: Unable to find version '23.3.0' of package 'Xamarin.Android.Support.v7.MediaRouter'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.v7.MediaRouter.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.mediarouter/23.3.0/xamarin.android.support.v7.mediarouter.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project TK.CustomMap.Android: Unable to find version '23.3.0' of package 'Xamarin.Android.Support.v7.MediaRouter'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.v7.MediaRouter.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.mediarouter/23.3.0/xamarin.android.support.v7.mediarouter.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed for project CalloutSample.Droid: Unable to find version '23.3.0' of package 'Xamarin.Android.Support.v7.MediaRouter'.
  https://api.nuget.org/v3/index.json: Error downloading 'Xamarin.Android.Support.v7.MediaRouter.23.3.0' from 'https://api.nuget.org/v3-flatcontainer/xamarin.android.support.v7.mediarouter/23.3.0/xamarin.android.support.v7.mediarouter.23.3.0.nupkg'.
  The UTC time represented when the offset is applied must be between year 0 and 10,000.
  Parameter name: offset

Package restore failed.

似乎围绕这个的所有错误:

The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset

有人可以帮忙吗?

编辑

mono version is:

$ mono --version
Mono JIT compiler version 4.4.0 (mono-4.4.0-branch-c7-baseline/5995f74 Thu Jun  2 15:13:10 EDT 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           normal
    SIGSEGV:       altstack
    Notification:  kqueue
    Architecture:  x86
    Disabled:      none
    Misc:          softdebug 
    LLVM:          yes(3.6.0svn-mono-master/a173357)
    GC:            sgen

【问题讨论】:

  • 看起来 NuGet 拒绝了我的下载请求。您本地机器的时间和日期是什么?
  • 我本地机器的时间和日期是 25/6/2016, 3:21PM, GMT +3
  • 嗯,看起来确实不错。这里的这个人似乎也有类似的问题。也许这有帮助:github.com/NuGet/Home/issues/1984
  • 我有一个建议,将 NuGet 降级到 v2,但我该怎么做呢?

标签: xamarin mono nuget xamarin-studio nuget-package-restore


【解决方案1】:

这是影响 NuGet 3 的bug in Mono

有两种解决方法:

  1. 使用可以从NuGet.org 下载的 NuGet 2。它还附带 Mono 4.4 及更早版本。
  2. 更改您机器的时区,使其使用 GMT+0 或负偏移量。如果您的时区具有正偏移量,则会出现 Mono 错误。

【讨论】:

  • 我尝试了上面的解决方法 2,但没有成功,(我刚刚将我的 mac 的时区更新为美国,格林威治标准时间减去 5),至于第 1 点,所有下载链接都在你提供的适用于 Windows,但我在 Mac 上,正确的链接在哪里?
  • 该解决方法适用于我在 Mac 上。是的,该链接中的 NuGet v2 将在 Mac 上运行。如果您尚未升级 Mono 附带的本地 nuget 副本,您也可以使用它。
  • 第二种解决方法对我有用,但只能重新启动 Xamarin Studio
  • @xleon 尝试了一切,但没有重新启动 Xamarin Studio,浪费了一天左右的时间。谢谢您的宝贵提示
猜你喜欢
  • 1970-01-01
  • 2012-11-27
  • 1970-01-01
  • 1970-01-01
  • 2015-02-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多