1 AS的Gradle构建时找不到图片资源 :
网上下载一个名为ic_launcher.png 的图片,拷到 C:ASAndroidStudioProjectsJuitDemoappsrcmain esmipmap-hdpi 路径下,解决
参考:http://blog.csdn.net/lihenair/article/details/49871453
参考:http://blog.csdn.net/fkq_2016/article/details/52434946
2 AS的Gradle构建时提示 :
Error:Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the 'java' gradle plugin in a library submodule add
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
to that submodule's build.gradle file.
出现这个现象的原因是你的jar包是基于jdk 1.8的,但当前AS(2.3.1)默认使用的jdk是1.7的。添加如下两句话,使你的项目适配JDK1.8。——尚未解决