Android填坑之路
source link: https://wuzhaohui026.github.io/2017/01/11/Android%E5%A1%AB%E5%9D%91%E4%B9%8B%E8%B7%AF/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Android填坑之路
2017-01-11
| Android
这篇文章主要记录一些在开发之中遇到的问题,并给出相应的解决方案。
1
2
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
这个问题应该是jar包重复引起的。(也不是很确定)。目前找到的以哦个有效的解决方案是总金额样的:
在app目录下的build.gradle中这个位置添加如下代码:
1
2
3
4
5
6
android {
...
dexOptions {
javaMaxHeapSize "4g"
}
}
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK