android - Gradle fail sync Error:Configuration with name 'default' not found -
i have problem. downloaded api https://github.com/tlaukkan/zigbee4java tried several times import project on android studio 2.3.1 gradle fail sync error:configuration name 'default' not found.
read on other posts error not understand change because api should correct. thank support. best regards.
edit
these steps did:
- unzip file
- open android studio
- select import project (eclipse adt, gradle, etc.)
- select zigbee4java-master
- , start gradle build
gradle-wrapper.properties
distributionbase=gradle_user_home distributionpath=wrapper/dists zipstorebase=gradle_user_home zipstorepath=wrapper/dists distributionurl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
build.gradle
import org.codehaus.groovy.tools.stringhelper buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' // note: not place application dependencies here; belong // in individual module build.gradle files } } def zigbee4javaprofilesarray=stringhelper.tokenizeunquoted(zigbee4javaprofiles) group = 'org.bubblecloud.zigbee4java' apply plugin: 'java' apply from: 'build-common.gradle' /* include build scripts profiles selected in 'gradle.properties' */ allprojects { repositories { jcenter() mavenlocal() mavencentral() maven { url "http://repository-bubblecloud.forge.cloudbees.com/release/" maven { url "http://repo.maven.apache.org/maven2" } } } dependencies { (zigbee4javaprofile in zigbee4javaprofilesarray) { switch (zigbee4javaprofile) { case 'android': println 'zigbee4java: including android build' compile project(':zigbee-serial-android') compile project(':zigbee-console-android') break; case 'javase': println 'zigbee4java: including javase build' compile project(':zigbee-serial-javase') compile project(':zigbee-console-javase') break; } } }
i hope these informations correct understand problem. thank you
edit
gradle 3.0 problem tried this:
on settings set "use local gradle distribution" , set path downloaded gradle 2.2.1 distribution. not solved problem.
tried uninstalled android studio 2.3.1 , install android studio 1.1 gradle 2.2.1 default again same problem.
the problem be: import org.codehaus.groovy.tools.stringhelper ???
finally solved problem.
don't steps necessary did,
uninstall android studio , android folders under ..\users\username\ , under \users\username\appdata\local\android.
sure have clean installation.
after install android studio 2.3.1 patch 2.3.3 downloaded necessary android api (api 21 in case).
in file-> settings-> gradle checked "use local gradle distribution" mi distribution gradle-2.2.1 @ end select import gradle project android studio start menu , no gradle error message appear , seem imported correctly.
my opinion that, first time tried import project using gradle 3.2. suppose files , folder generated not correctly, when tried use correct gradle version import not work properly.
when delete , used correct gradle version import successful.
thanks people answer question, , tried me.
best regards
Comments
Post a Comment