NDK Integration with Android Studio -


i'm new in ndk .and try setup integration ndk .but after research through many sites ,i not solved problem. here build.gradle file

  apply plugin: 'com.android.model.application'      model {       android {     compilesdkversion 23     buildtoolsversion "23.0.2"     }    android.ndk {     modulename "native"    }    defaultconfig.with {     applicationid "app.com.jnitester"     minsdkversion.apilevel 15     targetsdkversion.apilevel 23     versioncode 1     versionname "1.0"     buildconfigfields {         create() {             type = "int"             name = "value"             value = "1"         }     } }  /*   android.ndk {     modulename = "native" }*/   android.buildtypes {     release {         minifyenabled false         proguardfiles += file('proguard-rules.txt')     } }  android.productflavors {     create("flavor1") {         applicationid "com.app"     } }  android.sources {     main {         jni {              source {                 srcdir 'src'             }         }     } }  }  dependencies { compile filetree(dir: 'libs', include: ['*.jar']) testcompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' }  classpath is: 

classpath 'com.android.tools.build:gradle-experimental:0.4.0'

we error that:

error:(18, 0) no signature of method: org.gradle.model.dsl.internal.nontransformedmodeldslbacking.applicationid() applicable argument types: (java.lang.string) values: [app.com.jnitester] open file

when put buildtypes,productflavours,sources inside android{} gives errors that:

error:(4, 1) problem occurred configuring project ':app'.  > exception thrown while executing model rule: model.android    > not find method compilesdkversion() arguments [23] on project ':app'. 

may question duplicate couldn't find solution yet . save time. appreciated in advanced.

try adding '=' char. e.g.

compilesdkversion 23

change to

compilesdkversion = 23


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -