如何连接解析数据库和xamarin

时间:2015-03-03 18:08:00

标签: xamarin

我想在parse和xamarin之间进行测试连接我得到了这个错误(错误:构建失败。有关详细信息,请参阅构建日志。(ParseAndroidStarterProject))

这是我的代码

using System;
using Android.App;
using Android.Runtime;
using Parse;

namespace ParseAndroidStarterProject
{
[Application]
public class App : Application
{
    public App (IntPtr javaReference, JniHandleOwnership transfer) :            base(javaReference, transfer)
    {
    }
    /*
      public  async override  void ViewDidLoad(){
        var testObject = new ParseObject ("TestObject");
        testObject ["foo"] = "bar";
        await testObject.SaveAsync ();
    }
    */
    public async  override void OnCreate ()
    {
        base.OnCreate ();
        var testObject = new ParseObject ("TestObject");
        testObject ["foo"] = "bar";
        await testObject.SaveAsync ();
        // Initialize the parse client with your Application ID and .NET Key found on
        // your Parse dashboard
        ParseClient.Initialize("gBwRzJNUJ7jwhzf9Yen8qoVvFAEEwvrgWk3pqFSK",
            "FGgf0xrE78zAssgxT7jiMFtLdcBdOpNiCsjHQosq");
    }
}

}

我按照https://www.parse.com/apps/quickstart#parse_data/mobile/android/xamarin/new

中的所有步骤操作

我尝试使用另一个代码来检查编译是否运行正常

任何帮助?

0 个答案:

没有答案