1.错误信息如下:
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。
2. 在使用 fitsSystemWindows 为 true 的View 上设置 padding 值(paddingLeft/paddingTop/ 等)是没有效果的