Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/183.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 目标API错误_C#_Android_Asp.net_Json_Rest - Fatal编程技术网

C# 目标API错误

C# 目标API错误,c#,android,asp.net,json,rest,C#,Android,Asp.net,Json,Rest,我做了很多研究,但没有找到解决办法。 我的问题是,运行此代码时会导致错误: “必需的布尔值,但找到整数” 我想将REST API与Android连接,但我的web API在asp.net中 我的代码: @TargetApi(Build.VERSION_CODES.HONEYCOMB) private void setupActionBar() { if (Build.VERSION.SDK_INT= Build.VERSION_CODES.HONEYCOMB

我做了很多研究,但没有找到解决办法。 我的问题是,运行此代码时会导致错误:

“必需的布尔值,但找到整数”

我想将REST API与Android连接,但我的web API在asp.net中

我的代码:

@TargetApi(Build.VERSION_CODES.HONEYCOMB)
private void setupActionBar() 
{               
   if (Build.VERSION.SDK_INT= Build.VERSION_CODES.HONEYCOMB) {  
      getActionBar().setDisplayHomeAsUpEnabled(true);    
   }
}

提前感谢:)

您缺少“=”吗?哪个应该是
Build.VERSION.SDK\u INT==Build.VERSION\u CODES.HONEYCOMB
?谢谢兄弟,它现在可以工作了,我找不到这个了