简体   繁体   English

Xamarin Forms中的Android项目出现MobileServiceClient错误

[英]MobileServiceClient error with Android project in Xamarin Forms

I'm trying to build my Android project in a Xamarin.Forms solution and the following line keeps raising an exception that breaks the build. 我试图在Xamarin.Forms解决方案中构建我的Android项目,并且以下行不断引发异常,该异常会破坏构建。

client = new MobileServiceClient("backend_url");

This error is shown as such: 此错误显示如下:

System.InvalidOperationException: A Microsoft Azure Mobile Services assembly for the current platform was not found. Ensure that the current project references both Microsoft.WindowsAzure.Mobile and the following platform-specific assembly: Microsoft.WindowsAzure.Mobile.Ext.

I saw another thread saying to manually add the reference to the Android project but also a Xamarin dev said the problem was fixed after a certain update (maybe not so much). 我看到另一个线程说要手动添加对Android项目的引用,但还有一个Xamarin开发人员说该问题在经过一定的更新后得到了解决(也许没有那么多)。 Anyone have an idea where to fix this. 任何人都有解决此问题的想法。 I already went into the Android project> References > Browse> but couldn't find Microsoft.WindowsAzure.Ext 我已经进入Android项目>参考>浏览>,但是找不到Microsoft.WindowsAzure.Ext

Derp 德普

You need to add the Azure Mobile Client NuGet package to all the mobile app projects in the solution - Ken Tucker 您需要将Azure Mobile Client NuGet程序包添加到解决方案中的所有移动应用程序项目中-Ken Tucker

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在xamarin.forms android项目上构建日志错误 - build log error on xamarin.forms android project 在Android上关闭应用程序后,Prism + Xamarin.Forms Project错误? - Prism + Xamarin.Forms Project error after closing app on Android? 错误“框架不在模块中”。 在 Xamarin.Forms - Android 项目中 - Error "Frame not in module." in Xamarin.Forms - Android project 在Xamarin.forms项目中使用Xamarin Android dll - Use Xamarin Android dll in Xamarin forms project Xamarin.Forms:Android项目生成错误-AppData \\ Local \\ Xamarin文件夹内缺少文件 - Xamarin.Forms: Android project Build Error - Missing Files inside AppData\Local\Xamarin Folders Xamarin.Forms:在Android项目中无法访问CurrentPlatform - Xamarin.Forms: CurrentPlatform is inaccessible in Android project Xamarin与Android和iOS的图像形成共享项目 - Xamarin forms shared project with images for Android and iOS Xamarin.Forms 不编译 Android 项目 - Xamarin.Forms does not compile an Android Project AppCenter构建因Xamarin.Forms android项目错误而失败:无法找到程序集“ Mono.Android” - AppCenter build failing for Xamarin.Forms android project error: Could not locate the assembly “Mono.Android” 将项目从Xamarin.Android传输到Xamarin.Forms - Transfer project from Xamarin.Android to Xamarin.Forms
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM