Closed Hunter0125 closed 4 years ago
找到原因了,如果项目有使用spring-boot-starter-test,需要排除一个内置依赖,不然JSONObject操作会异常,配置如下:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
sdk使用3.0.8版本,参考官方Demo编写,日志报错如下