From 4a1405e79fe4a8fd61e3de78983dd37df5fc28f3 Mon Sep 17 00:00:00 2001 From: halx99 Date: Tue, 20 Apr 2021 20:27:38 +0800 Subject: [PATCH] Ensure build native first before compile java code 3ff5b16 --- .../runtime-src/proj.android/app/build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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') -}