简体   繁体   中英

Xamarin.Forms: CurrentPlatform is inaccessible in Android project

I'm trying to use Azure Mobile Client with Android. But, when I add the line Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); in the MainActivity , it says that CurrentPlatform is inaccessible. It's funny, because in the same solution I have this line in iOS project.

Image 1 在此处输入图片说明

Image 2 在此处输入图片说明

Image 3 在此处输入图片说明

Image 4 在此处输入图片说明

Please, could you help me with this issue?

I did the steps mentioned here. https://github.com/Azure/azure-mobile-apps-net-client/issues/408

Now it's working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM