diff --git a/templates/cpp-template-default/proj.android-studio/app/build.gradle b/templates/cpp-template-default/proj.android-studio/app/build.gradle index 5917c7d6ba..36f0b05be7 100644 --- a/templates/cpp-template-default/proj.android-studio/app/build.gradle +++ b/templates/cpp-template-default/proj.android-studio/app/build.gradle @@ -47,3 +47,14 @@ dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':libcocos2dx') } + +task cleanAssets(type: Delete) { + delete 'assets' +} +task copyAssets(type: Copy) { + from '../../Resources' + into 'assets' +} + +clean.dependsOn cleanAssets +preBuild.dependsOn copyAssets