我试图使用Retrofit和GSON解析一个字符串数组,这些字符串数组是从API返回的:["Scan finished, scan information embedded获得了一个错误:
W/System.err: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1数组在普通情况下填充得很好(例1),但是在这种情况下(案例2
突出显示以下代码中的部分,这给了我一个错误。我不明白为什么这会导致我的应用程序崩溃。请帮帮我!string()//This line is giving me error//
**items = gson.fromJson: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING<