标题
标题
transformDexArchiveWithExternalLibsDexMergerForDebug
这里写代码Error:Execution failed for task ':LGP:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: 片
大多是jar包冲突导致。
read timed out
由于项目的sdk没有使用自己下载的jdk1.8,而是使用AndroidStudio默认的jre目录,所以导致这个问题。
在Project Structure中,选择SDK Location,取消勾选Use embedded JDK,选择本地JDK。
Error : Program type already present: android.support.design.widget.CoordinatorLayout$
使用CoordinatorLayout时,需要同时使用support:design库。