Android build.gradle 更换资源文件路径

Android Gradle About 496 words

方法

android {
    sourceSets {
        main {
            res.srcDirs = ['res', 'res_zeusis']
            java.srcDirs = ['src']
            assets.srcDirs = ['assets']
            manifest.srcFile 'AndroidManifest.xml'
            jniLibs.srcDirs = ['jniLibs']
            aidl.srcDirs = ['src']
        }
    }

    lintOptions {//解决多语言未翻译问题
        checkReleaseBuilds false
        abortOnError false
    }

    dexOptions {
        preDexLibraries = false
        javaMaxHeapSize "4g"
    }
}
Views: 2,849 · Posted: 2019-04-13

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh