![](/img/trans.png)
[英]Microsoft Azure Mobile Service - Xamarin.Android Offline Sync Issues
[英]azure mobile service not working on xamarin.android
我正在嘗試在我的 Xamarin.Forms 應用程序中實現 Azure 移動服務。
我正在關注此鏈接,它適用於 iOS,但不適用於 Android。 它拋出這個異常:
MobileServiceInvalidOperationException - “服務器未提供包含預期內容的響應。”
我嘗試在 HTTP 和 HTTPS 之間切換,但無法正常工作。 它也適用於 Android(本機),但不適用於 Xamarin.Android
有什么幫助嗎?
您的問題在此處被跟蹤,似乎是由於以下原因:
我們今天不支持 SDK 中的 .Net Core 2.1。 不幸的是,我們今天沒有解決方法,就像 Ela 說的那樣,我們沒有新版本的 ETA 或其他 SDK 用於.Net Core 2.1 兼容性,所以你唯一的解決方法是堅持使用.Net現在是核心 2.0。
這里似乎有一個臨時工作,由 brendanzagaeski 在對 new MobileServiceClient() 的調用中進行:
似乎 AndroidClientHandler 是最常用的一個。
檢查您的項目中是否引用了“microsoft.azure.mobile.client”。 If not, try installing a lower version of the "microsoft.azure.mobile.client" through nuget package on your project add the using directive and then update the "microsoft.azure.mobile.client" through nuget package. 並更新任何未決的 package。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.