android - using jni and a library module -


i have project module dependency , want use jni. i'm working following tutorial: https://codelabs.developers.google.com/codelabs/android-studio-jni/index.html?index=..%2f..%2findex#0 tutorial worked fine, when try adapt project don't know how handle gradle file of module. current gradle files are:

project:

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle-experimental:0.7.2'          // note: not place application dependencies here; belong         // in individual module build.gradle files     } }  allprojects {     repositories {         jcenter()     } }  task clean(type: delete) {     delete rootproject.builddir } 

module:app

apply plugin: 'com.android.model.application'  model {     android {         compilesdkversion 23         buildtoolsversion "23.0.3"         defaultconfig {             applicationid "com.example.jens.mysync"             minsdkversion.apilevel 22             targetsdkversion.apilevel 23             versioncode 1             versionname "1.0"             testinstrumentationrunner "android.support.test.runner.androidjunitrunner"         }         buildtypes {             release {                 minifyenabled false                 proguardfiles.add(file('proguard-android.txt'))             }         }      } }  dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', {         exclude group: 'com.android.support', module: 'support-annotations'     })     compile 'com.google.android.gms:play-services:10.0.1'     testcompile 'junit:junit:4.12'     compile project(':sdl_android') } 

module:sdl_android

apply plugin: 'com.android.model.library'  model {     android {         compilesdkversion 23         buildtoolsversion "23.0.3"         defaultconfig {             minsdkversion.apilevel 22             targetsdkversion.apilevel 23             versioncode 1             versionname "4.3"         }         buildtypes {             release {                 minifyenabled false                 proguardfiles.add(file('proguard-android.txt'))             }         }         compileoptions {             sourcecompatibility javaversion.version_1_7             targetcompatibility javaversion.version_1_7         }         lintoptions {             abortonerror false         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', {         exclude group: 'com.android.support', module: 'support-annotations'     })     testcompile 'junit:junit:4.12' } 

when try sync now, error

error:cause: com.android.build.gradle.managed.androidconfig$impl 

can me?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -