The import com.google cannot be resolved

来源:互联网 发布:怎么查看端口是否开放 编辑:程序博客网 时间:2024/06/16 13:27
The import com.google cannot be resolved,报错:
第一感觉就是缺少jar包,因为项目用maven管理,所以在pom.xml中添加:
<dependency>
 <groupId>com.google.code.gson</groupId>
 <artifactId>gson</artifactId>
 <version>2.3.1</version>
</dependency>
就解决了!
0 0
原创粉丝点击