studio 打包提示GC overhead limit exceeded 打包失败

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_31796651/article/details/83304343

android studio 打包提示GC overhead limit exceeded错误,然后打包失败;

在app的build.gralde文件中添加下面代码就可以解决问题了

android{
......
    //打包提示GC
    dexOptions {
        incremental true
        javaMaxHeapSize "4g"
    }
......
}

猜你喜欢

转载自blog.csdn.net/qq_31796651/article/details/83304343