diff --git a/templates/lua-template-default/frameworks/runtime-src/proj.android/app/build.gradle b/templates/lua-template-default/frameworks/runtime-src/proj.android/app/build.gradle index 2373aba501..b3dc545ea7 100644 --- a/templates/lua-template-default/frameworks/runtime-src/proj.android/app/build.gradle +++ b/templates/lua-template-default/frameworks/runtime-src/proj.android/app/build.gradle @@ -101,6 +101,11 @@ android.applicationVariants.all { variant -> tasks.getByName("pre${targetName}Build").dependsOn copyTaskName } +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation project(':libcocos2dx') +} + project.afterEvaluate { if (tasks.findByName("externalNativeBuildDebug")) { compileDebugJavaWithJavac.dependsOn externalNativeBuildDebug @@ -109,8 +114,3 @@ project.afterEvaluate { compileReleaseJavaWithJavac.dependsOn externalNativeBuildRelease } } - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation project(':libcocos2dx') -}