生成Xamarin项目时出错

nkhmeac6  于 2022-12-07  发布在  其他
关注(0)|答案(1)|浏览(165)

每次我尝试构建我的xamarin项目时都会收到此错误

Can not resolve reference: `Parse`, referenced by `Project`. Please 
add a NuGet package or assembly reference for `Parse`, or remove the reference 
to `Project`.   Project.Android

到目前为止,我已经尝试过:

  • 删除软件包中的所有文件夹〉重启VS2017
  • 以管理员身份运行VS2017

这些都不起作用,有人知道如何解决这个问题吗?
先谢谢你。

relj7zay

relj7zay1#

I changed the Android version to 10.0 from 11.0, uninstalled and reinstalled Parse again and it worked.

Edit

Stopped working again. Upgraded to the 2.0.0 version as per this link - https://github.com/parse-community/Parse-SDK-dotNET/issues/303

Edit

Stopped working again. Went back to the 1.7 version but this time didn't use the Nuget package. Extracted Android and IOS dlls and added them manually as references. Working now.

Edit Download Parse-1.7.0.zip from https://github.com/parse-community/Parse-SDK-dotNET/releases/tag/1.7.0

Extract the contents.

Add Parse.Android.dll to the Android project. 
Add Parse.iOS.dll to iOS project. 
Add Parse.dll to Assemblies in the main project.

相关问题