cordova - Android studio Error:Configuration with name 'debug' not found -
i have problem. when want gradle project sync in project, write:
error:configuration name 'debug' not found.
only 1 line, nothing more.
don't know want me.
here build.gradle
:
buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' } } apply plugin: 'android-library' ext { apply from: 'cordova.gradle' cdvcompilesdkversion = privatehelpers.getprojecttarget() cdvbuildtoolsversion = privatehelpers.findlatestinstalledbuildtools() } android { compilesdkversion 21 buildtoolsversion '21.1.2' defaultconfig { targetsdkversion 24 multidexenabled true } compileoptions { sourcecompatibility javaversion.version_1_6 targetcompatibility javaversion.version_1_6 } sourcesets { main { manifest.srcfile 'androidmanifest.xml' java.srcdirs = ['src'] resources.srcdirs = ['src'] aidl.srcdirs = ['src'] renderscript.srcdirs = ['src'] res.srcdirs = ['res'] assets.srcdirs = ['assets'] } } }
i started experence error since had updated cordova-android 6.0.0.
i overcame using
android { publishnondefault true }
you can read here http://tools.android.com/tech-docs/new-build-system/user-guide#toc-library-publication
Comments
Post a Comment