AndroidStudio2.3打包签名遇到的坑

第一个是报out of memory GC的错,第二个是报ResourceException

在app的builde.gradle中配置

   lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
    dexOptions {
        incremental true
        javaMaxHeapSize "4g"
    }
  即可解决报错。

猜你喜欢

转载自blog.csdn.net/ak47985/article/details/62422229