From ae2cb3b7408e18a3d22ffec6419d7cf36dc7780e Mon Sep 17 00:00:00 2001 From: iwgeric Date: Mon, 11 Apr 2016 19:31:04 -0400 Subject: [PATCH] Fix issue detecting Android NDK and property to build native projects --- jme3-android-native/decode.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jme3-android-native/decode.gradle b/jme3-android-native/decode.gradle index b26a34b6d..791e62904 100644 --- a/jme3-android-native/decode.gradle +++ b/jme3-android-native/decode.gradle @@ -85,7 +85,9 @@ task copyPreCompiledLibs(type: Copy) { into outputDir } -if (rootProject.ndkExists && rootProject.buildNativeProjects) { +// 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 { updatePreCompiledLibs } } else {