1. 问题1:运行gradle clean build时出现如下的错误信息,编译失败。
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。:app:dexDebug
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: GC overhead limit exceeded
:app:dexDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/devtools/jdk1.7.0_51/bin/java'' finished with non-zero exit value 3
解决方案及原理:
这里直接剽窃了CSDN上其他伙伴的帖子
http://blog.csdn.net/t12x3456/article/details/40837287
这篇帖子写的很详细。
2. 仅在build.gradle中添加完关于multi-dex的相关配置,然后编译成功了,安装运行,发生崩溃。
java.lang.VerifyError:com/artifex/mupdfdemo/MuPDFCore at com.art