android-project/app/build.gradle
changeset 11649 fe6769530709
parent 11647 5816b27073a4
child 11854 934d77867168
     1.1 --- a/android-project/app/build.gradle	Mon Oct 23 23:23:34 2017 -0700
     1.2 +++ b/android-project/app/build.gradle	Mon Oct 23 23:23:47 2017 -0700
     1.3 @@ -1,14 +1,19 @@
     1.4  apply plugin: 'com.android.application'
     1.5  
     1.6  android {
     1.7 -    compileSdkVersion 25
     1.8 -    buildToolsVersion "25.0.1"
     1.9 +    compileSdkVersion 16
    1.10 +    buildToolsVersion "26.0.1"
    1.11      defaultConfig {
    1.12          applicationId "org.libsdl.app"
    1.13 -        minSdkVersion 10
    1.14 +        minSdkVersion 14
    1.15          targetSdkVersion 16
    1.16          versionCode 1
    1.17          versionName "1.0"
    1.18 +        externalNativeBuild {
    1.19 +            ndkBuild {
    1.20 +                arguments "APP_PLATFORM=android-14"
    1.21 +            }
    1.22 +        }
    1.23          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    1.24      }
    1.25      buildTypes {
    1.26 @@ -19,7 +24,11 @@
    1.27      }
    1.28      sourceSets.main {
    1.29          jniLibs.srcDir 'libs'
    1.30 -        jni.srcDirs = [] //disable automatic ndk-build call
    1.31 +    }
    1.32 +    externalNativeBuild {
    1.33 +        ndkBuild {
    1.34 +            path 'jni/Android.mk'
    1.35 +        }
    1.36      }
    1.37      lintOptions {
    1.38          abortOnError false
    1.39 @@ -27,7 +36,7 @@
    1.40  }
    1.41  
    1.42  dependencies {
    1.43 -    compile fileTree(dir: 'libs', include: ['*.jar'])
    1.44 +    compile fileTree(include: ['*.jar'], dir: 'libs')
    1.45      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    1.46          exclude group: 'com.android.support', module: 'support-annotations'
    1.47      })