apply plugin: 'com.android.application'android {    compileSdkVersion 23    buildToolsVersion "23.0.3"    defaultConfig {        applicationId "baidu.target_hook"        minSdkVersion 16        targetSdkVersion 23        versionCode 1        versionName "1.0"        ndk{            moduleName "test.cy"        }    }    sourceSets.main {        jni.srcDirs = [] // This prevents the auto generation of Android.mk        jniLibs.srcDir 'src/main/libs' // This is not necessary unless you have precompiled libraries in your project.    }    task buildNative(type: Exec, description: 'Compile JNI source via NDK') {        def ndkDir = android.ndkDirectory        commandLine "$ndkDir/ndk-build.cmd",                '-C', file('src/main/jni').absolutePath, // Change src/main/jni the relative path to your jni source                '-j', Runtime.runtime.availableProcessors(),                'all',                'NDK_DEBUG=1'    }    task cleanNative(type: Exec, description: 'Clean JNI object files') {        def ndkDir = android.ndkDirectory        commandLine "$ndkDir/ndk-build.cmd",                '-C', file('src/main/jni').absolutePath, // Change src/main/jni the relative path to your jni source                'clean'    }    clean.dependsOn 'cleanNative'    tasks.withType(JavaCompile) {        compileTask -> compileTask.dependsOn buildNative    }    buildTypes {        release {            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'        }    }}dependencies {    compile fileTree(dir: 'libs')    testCompile 'junit:junit:4.12'    compile 'com.android.support:appcompat-v7:23.3.0'    compile 'com.android.support:design:23.3.0'}

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 腾龙国际开户——I7300441110
  2. 如何写出好看的C++代码
  3. 学大数据一点也不难!一文带你了解RDD与共
  4. 如何写出一流的Nature论文?
  5. 腾龙娱乐怎么开户——I7300441110
  6. 腾龙娱乐开户——I7300441110
  7. 嵌入式编程中的复杂指针的使用
  8. CentOS7部署Bind
  9. 做电商/外贸,搭建一个自己的网站要怎么选
  10. windows使用命令提示符切换盘符和到另一