android - Update gradle to experimental version - Error -
i'm following guide http://tools.android.com/tech-docs/new-build-system/gradle-experimental update gradle configuration in order use ndk.
- pluggin version: 0.6.0-alpha5
- gradle version: 2.10
after changes, error:
gradle sync failed: cause: com.android.build.gradle.managed.androidconfig$impl
here build.gradle. did forgot or made mistake ?
apply plugin: 'com.android.model.application' model { android { compilesdkversion 23 buildtoolsversion "23.0.1" defaultconfig { applicationid "com.appid" minsdkversion.apilevel 19 targetsdkversion.apilevel 23 versioncode 1 versionname "1.0" testinstrumentationrunner "android.support.test.runner.androidjunitrunner" } buildtypes { release { minifyenabled false proguardfiles.add(file('proguard-android.txt')) proguardfiles.add(file('proguard-rules.pro')) } } ndk { modulename "imageproc" } packagingoptions { exclude 'meta-inf/license' exclude 'meta-inf/notice' } } } 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' // json serialization compile 'com.google.code.gson:gson:2.4' // network compile 'com.squareup.retrofit:retrofit:2.0.0-beta3' compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2' compile 'com.squareup.okhttp3:okhttp:3.0.0-rc1' // junit testcompile 'org.robolectric:robolectric:3.0' }
i believe buildtypes should outside "android" block. also, possibly replace "defaultconfig" "defaultconfig.with" followed build.gradle structure in this answer. gradle able build.
Comments
Post a Comment