Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/308.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
Java 未能传递结果resultinfo谁=null请求=4001结果=-1数据=null_Java_Android_Exception - Fatal编程技术网

Java 未能传递结果resultinfo谁=null请求=4001结果=-1数据=null

Java 未能传递结果resultinfo谁=null请求=4001结果=-1数据=null,java,android,exception,Java,Android,Exception,我在下面的代码行中得到一个错误未能传递结果resultinfo who=null request=4001 result=-1 data=null: String matchString = gson.toJson(userMatches); 其中,userMatches是一个自定义对象,具有 ArrayList arrayOfMatches其中,RS\u SingleMatch是一个自定义对象,具有主要变量。这两个自定义对象都是可包裹的 Logcat: 有什么想法吗?userMatches

我在下面的代码行中得到一个错误
未能传递结果resultinfo who=null request=4001 result=-1 data=null

String matchString = gson.toJson(userMatches);
其中,
userMatches
是一个自定义对象,具有

ArrayList arrayOfMatches其中,
RS\u SingleMatch
是一个自定义对象,具有主要变量。这两个自定义对象都是可包裹的

Logcat:


有什么想法吗?

userMatches对象包含哪些内容?@Sandy请看编辑后的问题。您能发布userMachets对象包含哪些内容吗?@Sandy实际上它是可打包的,所以有方法可以实现。否则只有2个变量<代码>专用ArrayList arrayOfMatches
私有上下文。把整个班级都张贴在这里会很混乱。如果你不介意的话,我可以给你写信。