diff --git a/src/android/build.gradle b/src/android/build.gradle index 1d7ad80..b553c91 100644 --- a/src/android/build.gradle +++ b/src/android/build.gradle @@ -231,11 +231,11 @@ cdvPluginPostBuildExtras += { -> description = "Building native modules for ${abi_name}." workingDir "${rootProject.buildDir}/nodejs-native-assets-temp-build/nodejs-native-assets-${abi_name}/nodejs-project/" - String npm_gyp_path_to_use; - if( file("${rootProject.projectDir}/../../plugins/@red-mobile/nodejs-mobile-cordova/node_modules/nodejs-mobile-gyp/bin/node-gyp.js").exists() ) { - npm_gyp_path_to_use = "${rootProject.projectDir}/../../plugins/@red-mobile/nodejs-mobile-cordova/node_modules/nodejs-mobile-gyp/bin/node-gyp.js"; + String npm_gyp_path_to_use; // Check common paths for nodejs-mobile-gyp + if ( file("${project.projectDir}/../../nodejs-mobile-gyp/bin/node-gyp.js").exists() ) { + npm_gyp_path_to_use = "${project.projectDir}/../../nodejs-mobile-gyp/bin/node-gyp.js"; } else { - npm_gyp_path_to_use = "${rootProject.projectDir}/../../node_modules/nodejs-mobile-gyp/bin/node-gyp.js"; + npm_gyp_path_to_use = "${project.projectDir}/../node_modules/nodejs-mobile-gyp/bin/node-gyp.js"; } environment ('npm_config_node_engine', 'v8' )