Sunday 15 September 2013

android - Gradle DSL method not found : 'multiDexEnabled()' -



android - Gradle DSL method not found : 'multiDexEnabled()' -

i followed multidex guide @ https://developer.android.com/tools/building/multidex.html

but error gradle dsl method not found : 'multidexenabled()' . have updated android built tools , android back upwards repository , library. here gradle.build file. doing wrong here?

could not find method multidexenabled() arguments [true] on productflavordsl_decorated{name=main, minsdkversion=apiversionimpl{mapilevel=10, mcodename='null'}, targetsdkversion=apiversionimpl{mapilevel=17, mcodename='null'}, renderscripttargetapi=-1, renderscriptsupportmode=null, renderscriptndkmode=null, versioncode=-1, versionname=null, applicationid=test.com.app, testapplicationid=null, testinstrumentationrunner=null, testhandleprofiling=null, testfunctionaltest=null, signingconfig=null, resconfig=null}.

build.gradle

apply plugin: 'com.android.application' android { compilesdkversion 19 buildtoolsversion "21.1.1" defaultconfig { applicationid "test.com.app" minsdkversion 10 targetsdkversion 17 // enabling multidex support. multidexenabled true } buildtypes { release { runproguard false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile project(':addthissdk') compile project(':centeredcontentbutton') compile project(':googleplayservices_lib') compile files('libs/addthis0.0.8.jar') compile files('libs/adxtag2.4.6.jar') compile files('libs/android-support-v4.jar') compile files('libs/aws-android-sdk-1.7.1.1-debug.jar') compile files('libs/commons-lang-2.6.jar') compile files('libs/crittercism_v4_4_0_sdkonly.jar') compile files('libs/dd-plist.jar') compile files('libs/fiksuandroidsdk_4.1.1.jar') compile files('libs/iqengines-sdk-barcode.jar') compile files('libs/ireventtracker-1.2.jar') compile files('libs/jolt-core-0.0.7.jar') compile files('libs/json-utils-0.0.7.jar') compile files('libs/jsoup-1.7.2.jar') compile files('libs/kooaba-api-v4-java.jar') compile files('libs/signpost-commonshttp4-1.2.1.1.jar') compile files('libs/signpost-core-1.2.1.1.jar') compile 'com.android.support:multidex:1.0.0' }

you have running version 0.14.0 or later of android gradle plugin. see release notes @ http://tools.android.com/tech-docs/new-build-system details on what's in each release.

android android-studio android-gradle multidex android-multidex

No comments:

Post a Comment