Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Android Studio 升级Gradle 至3.6.4 出现的资源文件copy 失败的问题 #3029

Open
aylgyfqc opened this issue Nov 13, 2020 · 0 comments

Comments

@aylgyfqc
Copy link

aylgyfqc commented Nov 13, 2020

`
android.applicationVariants.all { variant ->

delete "${buildDir}/intermediates/merged_assets/${variant.dirName}"

variant.mergeAssets.doLast {
    def sourceDir = "${buildDir}/../../"

    System.out.println("______sourceDir = " + sourceDir)
    System.out.println("______outputDir = " + outputDir)

    copy {
        from "${sourceDir}/cocos-jsb/res"
        into "${outputDir}/res"
    }

    copy {
        from "${sourceDir}/cocos-jsb/src"
        into "${outputDir}/src"
    }

    copy {
        from "${sourceDir}/cocos-jsb/jsb-adapter"
        into "${outputDir}/jsb-adapter"
    }

    copy {
        from "${sourceDir}/cocos-jsb/main.js"
        from "${sourceDir}/cocos-jsb/project.json"
        into outputDir
    }
}

}
这一个拷贝是可以的,但是其他的不行 copy {
from "${sourceDir}/cocos-jsb/main.js"
from "${sourceDir}/cocos-jsb/project.json"
into outputDir
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant