xamarin android - 添加 admob 广告问题

xamarin android - add admob ads problems

当我将 Google 播放广告组件添加到我的应用程序时,我收到以下错误:

Severity    Code    Description Project File    Line    Suppression State
Warning 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.   Manager     1   Active
Error       Unzipping failed. Please download https:// dl-ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Basement.4.0\content directory.    Manager         
Error       Please install package: 'GPS Base' available in SDK installer. Android resource directory C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Base.4.0\embedded\./ doesn't exist. Manager         
Error       Please install package: 'GPS Basement' available in SDK installer. Android resource directory C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Basement.4.0\embedded\./ doesn't exist. Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Please install package: 'GPS Ads' available in SDK installer. Android resource directory C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Ads.4.0\embedded\./ doesn't exist.   Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zips[=11=]B3F1796C97C707339FB13AE8507AF50.zip is not a valid zip file  Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Please install package: 'GPS Base' available in SDK installer. Java library file C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Base.4.0\embedded\classes.jar doesn't exist. Manager         
Error       Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\Users\MASRI\AppData\Local\Xamarin\Android.Support.v4.1.1.0\embedded\libs/internal_impl-23.1.1.jar doesn't exist.   Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Android resource directory C:\Users\MASRI\AppData\Local\Xamarin\Android.Support.v4.1.1.0\embedded\./ doesn't exist. Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Please install package: 'GPS Tasks' available in SDK installer. Android resource directory C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Tasks.4.0\embedded\./ doesn't exist.   Manager         
Error       Please install package: 'GPS Gass' available in SDK installer. Android resource directory C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Gass.4.0\embedded\./ doesn't exist. Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Please install package: 'GPS Ads' available in SDK installer. Java library file C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Ads.4.0\embedded\classes.jar doesn't exist.   Manager         
Error       Unzipping failed. Please download https:// dl ssl.google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Ads.4.0\content directory.  Manager         
Error       Please install package: 'GPS Clearcut' available in SDK installer. Java library file C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Clearcut.4.0\embedded\classes.jar doesn't exist. Manager         
Error       Unzipping failed. Please download https:// dl ssl.google.com/android/repository/android_m2repository_r25.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\Android.Support.v4.1.1.0\content directory.  Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\Users\MASRI\AppData\Local\Xamarin\Android.Support.v4.1.1.0\embedded\classes.jar doesn't exist. Manager         
Error       Unzipping failed. Please download https:// dl ssl.google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Ads.Lite.4.0\content directory. Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zips[=11=]B3F1796C97C707339FB13AE8507AF50.zip is not a valid zip file  Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/android_m2repository_r25.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\Android.Support.v4.1.1.0\content directory. Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Basement.4.0\content directory.    Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Tasks.4.0\content directory.   Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Gass.4.0\content directory.    Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Clearcut.4.0\content directory.    Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Clearcut.4.0\content directory.    Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Please install package: 'GPS Gass' available in SDK installer. Java library file C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Gass.4.0\embedded\classes.jar doesn't exist. Manager         
Error       Please install package: 'GPS Tasks' available in SDK installer. Java library file C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Tasks.4.0\embedded\classes.jar doesn't exist.   Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Please install package: 'GPS Ads Lite' available in SDK installer. Java library file C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Ads.Lite.4.0\embedded\classes.jar doesn't exist. Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zipsDC07E5A9A61485CEDA94D8006556F2.zip is not a valid zip file  Manager         
Error       Please install package: 'GPS Ads Lite' available in SDK installer. Android resource directory C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Ads.Lite.4.0\embedded\./ doesn't exist. Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/android_m2repository_r25.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\Android.Support.v4.1.1.0\content directory. Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Ads.4.0\content directory. Manager         
Error       Reason: C:\Users\MASRI\AppData\Local\Xamarin\zips[=11=]B3F1796C97C707339FB13AE8507AF50.zip is not a valid zip file  Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Base.4.0\content directory.    Manager         
Error       Unzipping failed. Please download https:// dl-ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Tasks.4.0\content directory.   Manager         
Error       Unzipping failed. Please download https:// dl-ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Gass.4.0\content directory.    Manager         
Error       Please install package: 'GPS Basement' available in SDK installer. Java library file C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Basement.4.0\embedded\classes.jar doesn't exist. Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Ads.Lite.4.0\content directory.    Manager         
Error       Unzipping failed. Please download https:// dl ssl .google.com/android/repository/google_m2repository_r32.zip and extract it to the C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Base.4.0\content directory.    Manager         
Error       Please install package: 'GPS Clearcut' available in SDK installer. Android resource directory C:\Users\MASRI\AppData\Local\Xamarin\GooglePlayServices.Clearcut.4.0\embedded\./ doesn't exist. Manager         

我不明白为什么我会收到这么多错误。

安装包:'GPS Base',在 SDK 安装程序中可用。所有这些错误似乎都是由您的代码调用 GPS Base SDK 函数引起的,这会导致错误,因为您尚未安装它。