android - Configuration with name 'default' not found when Importing from Git -


i'm working in project first began in eclipse. migrated in android studio.

i work in mac, , ok. then, when try download git rep in pc, message:

configuration name 'default' not found 

here project organization:

sp-mobile   progresswheel ( lib project )   spmobile ( main project )     build.gradle (1)    build.gradle (top)   settings.gradle (top) 

build.gradle (1)

apply plugin: 'com.android.application'  android { compilesdkversion 'google inc.:google apis:21' buildtoolsversion "21.1.2" lintoptions {     abortonerror false }  defaultconfig {     applicationid "com.spmkt.mobile"     minsdkversion 16     targetsdkversion 22 }  buildtypes {     release {         minifyenabled true         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } } packagingoptions {     exclude 'meta-inf/dependencies.txt'     exclude 'meta-inf/license.txt'     exclude 'meta-inf/notice.txt'     exclude 'meta-inf/notice'     exclude 'meta-inf/license'     exclude 'meta-inf/dependencies'     exclude 'meta-inf/notice.txt'     exclude 'meta-inf/license.txt'     exclude 'meta-inf/dependencies.txt'     exclude 'meta-inf/lgpl2.1' } }  dependencies { compile project(':progresswheel') compile 'com.google.code.gson:gson:2.3' compile 'com.google.android.gms:play-services:+' compile 'com.android.support:appcompat-v7:22.2.0' compile files('libs/crashlytics.jar') compile files('libs/httpcore-4.3.2.jar') compile files('libs/httpmime-4.3.3.jar') 

}

build.gradle (top)

// top-level build file can add configuration options common sub-projects/modules. buildscript { repositories {     jcenter() } dependencies {     classpath 'com.android.tools.build:gradle:1.2.3' } }  allprojects { repositories {     jcenter() } } 

and settings.gradle

include ':progresswheel' include ':spmobile' 

i have made test, , when remove dependencies progresswheel, have no more problem ( code doesn't compile anymore, sync succeed )

i guess problem comes line :

compile project(':progresswheel') 

but can't figure out why on 1 computer ok. , in 1 fails!

edit: seems progresswheel added module, spmobile no.

progresswheel has .iml inside, spmobile doesn't.

edit 2:

it seems have sp-mobile.iml in red, don't know means, iml's lib not red, understand diference between .iml mac , pc...

here .iml project

<?xml version="1.0" encoding="utf-8"?> <module external.linked.project.id="sp-mobile"  external.linked.project.path="$module_dir$"  external.root.project.path="$module_dir$" external.system.id="gradle"  external.system.module.group="" external.system.module.version="unspecified"  type="java_module" version="4"> 

any appreciated!

the error indicates 1 or more of library paths incorrect make sure libraries exist in default path or can remove them , reinsert gui option right click on project : open module settings >> select app module >> dependencies >> add "+" icon , select module dependency ...


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -