Search code examples
androidandroid-studiodefaultbuild.gradle

Android Studio 2 Error:Configuration with name 'default' not found


This question has been asked many times so far, but none of the provided solutions worked for me.

I'm completely new to Android Studio and trying to open this project in Android Studio: https://github.com/monkeyswarm/MobMuPlat.

There is two build.gradle files. One in the root folder and another in in the 'app' folder. is that correct?

When I try to sync the gradle project it says gradle project sync failed and gives me the error: Configuration with name 'default' not found.

This part in the build.gradle file is highlighted:

dependencies {
    classpath 'com.android.tools.build:gradle:1.5.0'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

any idea whats going wrong here?


Solution

  • Your app/build.gradle is containing one line

     wearApp project(':mobmuplatandroidwear')
    

    Remove that and try to sync the project.

    Hope this helps.