How to run copy task with android studio into assets folder

后端 未结 7 986
温柔的废话
温柔的废话 2020-12-01 11:53

So far I have added the following to the end of my \"build.gradle\"

task copyFiles(type: Copy)

copyFiles {
    description = \'Copies html5 files from the c         


        
7条回答
  •  无人及你
    2020-12-01 12:37

    I use the following copy task in my project to copy strings into another directory:

    task copyStringsUniversal(type: Copy) {
        from 'src/main/res/values'
        include 'strings.xml'
        include 'array.xml'
        into 'src/universal/res/values'
    }
    build.dependsOn copyStringsUniversal
    

提交回复
热议问题