From f3177535a73efa3dd0f71704524f47ed6102bfe3 Mon Sep 17 00:00:00 2001 From: iwgeric Date: Mon, 11 Apr 2016 19:30:37 -0400 Subject: [PATCH] Fix issue detecting Android NDK and property to build native projects --- jme3-bullet-native-android/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jme3-bullet-native-android/build.gradle b/jme3-bullet-native-android/build.gradle index 30fdd44b5..958d2b094 100644 --- a/jme3-bullet-native-android/build.gradle +++ b/jme3-bullet-native-android/build.gradle @@ -186,7 +186,9 @@ task copyPreCompiledBulletLibs(type: Copy) { into outputDir } -if (rootProject.ndkExists) { +// ndkExists is a boolean from the build.gradle in the root project +// buildNativeProjects is a string set to "true" +if (ndkExists && buildNativeProjects == "true") { // build native libs and update stored pre-compiled libs to commit compileJava.dependsOn { updatePreCompiledBulletLibs } } else {