Skip to content

Instantly share code, notes, and snippets.

@oksep
Last active May 16, 2016 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oksep/4ee92ef701cc33310d685a90f2307cc7 to your computer and use it in GitHub Desktop.
Save oksep/4ee92ef701cc33310d685a90f2307cc7 to your computer and use it in GitHub Desktop.
AndroidStudio JNI-support
apply plugin: 'com.android.model.application'
apply plugin: 'idea'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.2"
defaultConfig.with {
applicationId = "cn.septenary.keepdebug"
minSdkVersion.apiLevel = 14
targetSdkVersion.apiLevel = 23
}
}
android.lintOptions {
abortOnError = false
}
android.ndk {
moduleName = "roprop"
ldLibs.add("android")
ldLibs.add("log")
}
android.productFlavors {
create("all")
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.2.0'
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.7.0-alpha4'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
#Mon Dec 07 14:26:27 CST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment