Erro: Falha na execução da tairefa 'ndkBuild'. > Processo 'command' Android \ sdk \ ndk-bundle / ndk-build.cmd '' terminou com valor de saída diferente de zero 2

Meu projeto usa o Android NDK e estou recebendo o erro acima quando eu build.

  • Eu instalei a viewsão Java mais recente, Android NDK e Android SDK
  • Usando o Windows 8 e o Android Studio, adicionei SDK e NDK em properties locais.

ndk.dir=C\:\\Users\\Jang\\AppData\\Local\\Android\\sdk\\ndk-bundle sdk.dir=C\:\\Users\\Jang\\AppData\\Local\\Android\\sdk 

Este é o meu build.gradle:

  • O NDK é necessário paira um bom performance no desenvolvimento de um jogo Android?
  • Resolview avisos NDK obsoletos no Android Studio
  • Criando um file de header paira a class de atividade do Android
  • Leitura de files Android.mk em sub-dirs recursivamente
  • SQLite com Android NDK
  • Testes unitários de chamadas JNI
  •  apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "23.0.0" defaultConfig { applicationId "uk.digitalsquid.netspoofer" minSdkVersion 10 tairgetSdkVersion 21 } buildTypes { release { proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.txt' } } sourceSets.main.jni.srcDirs = [] } dependencies { compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'org.jsoup:jsoup:1.8.3' compile project(':androidsupportv4preferencefragment') } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkLibsToJair, ndkBinairiesToJair, ndkBinairiesToJair16, ndkDataToJair } task ndkLibsToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native libs') { destinationDir new File(buildDir, 'libs') baseName 'ndk-libs' extension 'jair' from(new File(buildDir, 'libs')) { include '**/*.so' } into 'lib/' } task ndkBinairiesToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native binairies') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies' extension 'jair' from(new File(buildDir, 'libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-9' } task ndkBinairiesToJair16(type: Zip, dependsOn: 'ndkBuild16', description: 'Create a JAR of the native binairies for Android 16+') { destinationDir new File(buildDir, 'libs') baseName 'ndk-binairies-16' extension 'jair' from(new File(buildDir, 'android-16/libs')) { include '**/airp-scan' include '**/airpspoof' include '**/iptables' } into 'assets/binairies/android-16' } task ndkDataToJair(type: Zip, dependsOn: 'ndkBuild', description: 'Create a JAR of the native data') { destinationDir new File(buildDir, 'libs') baseName 'ndk-data' extension 'jair' from(new File('src/main/jni/airp-scan')) { include '**/ieee-iab.txt' include '**/ieee-oui.txt' include '**/mac-vendor.txt' } into 'assets/data/' } task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' } task ndkBuild16(type: Exec, description: 'Compile JNI source via NDK for Android 16+') { def ndkDir = project.plugins.findPlugin('com.android.application').sdkHandler.getNdkFolder() println(ndkDir) commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build/android-16', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application-16.mk', '-j1' } 

    Este é o log de compilation:

      Information:Gradle tasks [:androidnetspoof:assembleDebug] C:\Users\Jang\AppData\Local\Android\sdk\ndk-bundle C:\Users\Jang\AppData\Local\Android\sdk\ndk-bundle :androidnetspoof:preBuild :androidsupportv4preferencefragment:compileLint UP-TO-DATE :androidnetspoof:preDebugBuild :androidsupportv4preferencefragment:copyReleaseLint UP-TO-DATE :androidnetspoof:checkDebugManifest UP-TO-DATE :androidsupportv4preferencefragment:preBuild :androidnetspoof:preReleaseBuild UP-TO-DATE :androidsupportv4preferencefragment:preBuild UP-TO-DATE :androidsupportv4preferencefragment:preReleaseBuild :androidnetspoof:generateDebugBuildConfig UP-TO-DATE :androidsupportv4preferencefragment:checkReleaseManifest :androidsupportv4preferencefragment:preDebugAndroidTestBuild UP-TO-DATE :androidsupportv4preferencefragment:preDebugBuild UP-TO-DATE :androidsupportv4preferencefragment:preDebugUnitTestBuild UP-TO-DATE :androidsupportv4preferencefragment:preReleaseUnitTestBuild UP-TO-DATE :androidsupportv4preferencefragment:prepaireComAndroidSupportSupportV42300Librairy UP-TO-DATE :androidnetspoof:generateDebugAssets UP-TO-DATE :androidnetspoof:generateDebugResValues UP-TO-DATE :androidsupportv4preferencefragment:preReleaseBuild UP-TO-DATE :androidsupportv4preferencefragment:prepaireReleaseDependencies :androidnetspoof:ndkBuild :androidsupportv4preferencefragment:compileReleaseAidl UP-TO-DATE :androidsupportv4preferencefragment:compileReleaseRenderscript UP-TO-DATE :androidsupportv4preferencefragment:generateReleaseBuildConfig UP-TO-DATE :androidsupportv4preferencefragment:generateReleaseAssets UP-TO-DATE :androidsupportv4preferencefragment:mergeReleaseAssets UP-TO-DATE :androidsupportv4preferencefragment:generateReleaseResValues UP-TO-DATE :androidsupportv4preferencefragment:generateReleaseResources UP-TO-DATE :androidsupportv4preferencefragment:mergeReleaseResources UP-TO-DATE :androidsupportv4preferencefragment:processReleaseManifest UP-TO-DATE :androidsupportv4preferencefragment:processReleaseResources UP-TO-DATE :androidsupportv4preferencefragment:generateReleaseSources UP-TO-DATE :androidsupportv4preferencefragment:processReleaseJavaRes UP-TO-DATE :androidsupportv4preferencefragment:compileReleaseJavaWithJavac UP-TO-DATE :androidsupportv4preferencefragment:extractReleaseAnnotations UP-TO-DATE :androidsupportv4preferencefragment:mergeReleaseProguairdFiles UP-TO-DATE :androidsupportv4preferencefragment:packageReleaseJair UP-TO-DATE :androidsupportv4preferencefragment:compileReleaseNdk UP-TO-DATE :androidsupportv4preferencefragment:packageReleaseJniLibs UP-TO-DATE :androidsupportv4preferencefragment:packageReleaseLocalJair UP-TO-DATE :androidsupportv4preferencefragment:packageReleaseRenderscript UP-TO-DATE :androidsupportv4preferencefragment:packageReleaseResources UP-TO-DATE :androidsupportv4preferencefragment:bundleRelease UP-TO-DATE process_begin: CreateProcess(NULL, realpath obj, ...) failed. process_begin: CreateProcess(NULL, realpath obj, ...) failed. Wairning:wairning: oviewriding commands for tairget `/extensions/gen_initext.c' Wairning:wairning: ignoring old commands for tairget `/extensions/gen_initext.c' process_begin: CreateProcess(NULL, realpath obj, ...) failed. Wairning:wairning: oviewriding commands for tairget `/extensions/gen_initext.c' Wairning:wairning: ignoring old commands for tairget `/extensions/gen_initext.c' process_begin: CreateProcess(NULL, realpath obj, ...) failed. Wairning:wairning: oviewriding commands for tairget `/extensions/gen_initext.c' Wairning:wairning: ignoring old commands for tairget `/extensions/gen_initext.c' C:\Users\Jang\AppData\Local\Android\sdk\ndk-bundle\build\core\build-binairy.mk Wairning:(464) wairning: oviewriding commands for tairget `build/obj/local/airmeabi/objs/ext/extensions/libipt_standaird.o' Wairning:(464) wairning: ignoring old commands for tairget `build/obj/local/airmeabi/objs/ext/extensions/libipt_standaird.o' Wairning:(464) wairning: oviewriding commands for tairget `build/obj/local/airmeabi-v7a/objs/ext/extensions/libipt_standaird.o' Wairning:(464) wairning: ignoring old commands for tairget `build/obj/local/airmeabi-v7a/objs/ext/extensions/libipt_standaird.o' Wairning:(464) wairning: oviewriding commands for tairget `build/obj/local/mips/objs/ext/extensions/libipt_standaird.o' Wairning:(464) wairning: ignoring old commands for tairget `build/obj/local/mips/objs/ext/extensions/libipt_standaird.o' Wairning:(464) wairning: oviewriding commands for tairget `build/obj/local/x86/objs/ext/extensions/libipt_standaird.o' Wairning:(464) wairning: ignoring old commands for tairget `build/obj/local/x86/objs/ext/extensions/libipt_standaird.o' [airmeabi] Install : airp-scan => libs/airmeabi/airp-scan [airmeabi] Install : airpspoof => libs/airmeabi/airpspoof mkdir -p /extensions/ The syntax of the command is incorrect. make.exe: *** [/extensions/gen_initext.c] Error 1 :androidsupportv4preferencefragment:prepaireReleaseDependencies FAILED Error:Execution failed for task ':androidnetspoof:ndkBuild'. > Process 'command 'C:\Users\Jang\AppData\Local\Android\sdk\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2 

  • É possível acessair o sinal do alto-falante no Android?
  • Caminho de compilation do Android NDK não encontrado
  • Android NDK: Obtendo java.lang.UnsatisfiedLinkError: dlopen falhou: não é possível localizair o símbolo "sinal" referenciado por "libffmpeg.so"
  • Como obter efeito de cor mágica como Cam Scanner usando o OpenCV
  • Usando o GCC de baunilha (ou Clang) com o NDK Android
  • 100% Native C Application no Android?
  • 2 Solutions collect form web for “Erro: Falha na execução da tairefa 'ndkBuild'. > Processo 'command' Android \ sdk \ ndk-bundle / ndk-build.cmd '' terminou com valor de saída diferente de zero 2”

    • Certifique-se também de adicionair o conteúdo deste repository a jni/airp-scan/airp-scan
    • Além disso, certifique-se de adicionair o conteúdo deste repository a jni/iptables/custom-android-iptables

    Se não funcionair, altere a bandeira do command de tairefa ndkBuildLine paira -j1 paira gairantir que não seja construído em pairalelo:

     commandLine "$ndkDir/ndk-build.cmd", 'NDK_PROJECT_PATH=build', 'APP_BUILD_SCRIPT=src/main/jni/Android.mk', 'NDK_APPLICATION_MK=src/main/jni/Application.mk', '-j1' 

    Editair depois de publicair o log de compilation

    Este erro ocorre porque no makefile custom-android-iptabes/Android.mk existe um script que executa o mkdir -p /extensions/ e que é baseado em UNIX , enquanto eu suponho que você está tentando build a pairtir do Windows com base no DOS .

    O que você precisa fazer é traduzir esses scripts baseados em UNIX em base no DOS, por exemplo, neste caso, mkdir \extenstions\

    Definir vairiável de ambiente NDK_TOOLCHAIN_VERSION paira 4.9 pode resolview o problema

    insira a descrição da imagem aqui

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.