mClient.invokeApi错误的构造函数的Azure移动服务Android SDK和未编译 [英] mClient.invokeApi wrong constructor in Azure-mobile-services android SDK and is not compiling

查看:193
本文介绍了mClient.invokeApi错误的构造函数的Azure移动服务Android SDK和未编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是<一个片段href=\"http://azure.microsoft.com/en-us/documentation/articles/mobile-services-android-call-custom-api/\"相对=nofollow>文档蔚蓝

ListenableFuture<MarkAllResult> result = mClient.invokeApi( "completeAll2", MarkAllResult.class ); 

Futures.addCallback(result, new FutureCallback<MarkAllResult>() {
    @Override
    public void onFailure(Throwable exc) {
        createAndShowDialog((Exception) exc, "Error");
    }

    @Override
    public void onSuccess(MarkAllResult result) {
        createAndShowDialog(result.getCount() + " item(s) marked as complete.", "Completed Items");
        refreshItemsFromTable();    
    }
});

}

这code不能编译,因为没有可用的构造器的 mClient.invokeApi(字符串类)

This code can not be compiled,because there is no available Contructor for mClient.invokeApi(String,Class).

我是新来azure.Can请你指出什么地方出了错?或者是有与Android SDK的Azure(V1.1.5)?

I am new to azure.Can you please point out what went wrong? Or is there a problem with Android Azure SDK(V1.1.5)?

推荐答案

此错误是现在固定在Azure中移动的Andr​​oid SDK从天青V2.0.Got的官方邮件。

This bug is now fixed in Azure Mobile Android SDK V2.0.Got an official mail from Azure.

这篇关于mClient.invokeApi错误的构造函数的Azure移动服务Android SDK和未编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆