1.android studio如何创建java工程
参考:https://www.2cto.com/kf/201605/505760.html
2.解决Android Studio Gradle 错误 编码GBK的不可映射字符
http://blog.csdn.net/whu_zhangmin/article/details/46468061
需要在build.gradle文件中添加
tasks.withType(JavaCompile) {
options.encoding = “UTF-8”
}