在java中使用Google sheets api将列指定给ValueRange变量时发生类型错误以进行追加?
“java.lang.String无法转换为java.lang.Object” 它抛出错误:(104,30)java:不兼容的类型:java.util.List在java中使用Google sheets api将列指定给ValueRange变量时发生类型错误以进行追加?,java,android,append,google-sheets-api,Java,Android,Append,Google Sheets Api,“java.lang.String无法转换为java.lang.Object” 它抛出错误:(104,30)java:不兼容的类型:java.util.List无法转换为java.util.List> 我错过了创建一个类吗?为什么会抛出此错误。将字符串更改为对象 ValueRange body = new ValueRange().setValues( Arrays.asList( Arrays.asList((Ob
我错过了创建一个类吗?为什么会抛出此错误。将
字符串更改为对象
ValueRange body = new ValueRange().setValues(
Arrays.asList(
Arrays.asList((Object)"Row 1 Cell 1", (Object)"Row 1 Cell 2",(Object) "Row 1 Cell 3"),
Arrays.asList((Object)"Row 2 Cell 1",(Object) "Row 2 Cell 2", (Object)"Row 2 Cell 3")));
ValueRange body = new ValueRange().setValues(
Arrays.asList(
Arrays.asList("Row 1 Cell 1", "Row 1 Cell 2", "Row 1 Cell 3"),
Arrays.asList("Row 2 Cell 1", "Row 2 Cell 2", "Row 2 Cell 3")));
ValueRange body = new ValueRange().setValues(
Arrays.asList(
Arrays.asList((Object)"Row 1 Cell 1", (Object)"Row 1 Cell 2",(Object) "Row 1 Cell 3"),
Arrays.asList((Object)"Row 2 Cell 1",(Object) "Row 2 Cell 2", (Object)"Row 2 Cell 3")));