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"
    }
  即可解决报错。

你可能感兴趣的:(android开发)