uraltermann
uraltermann

Reputation: 23

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?

Upvotes: 2

Views: 392

Answers (2)

Gabriele Mariotti
Gabriele Mariotti

Reputation: 365048

In your MobMuPlat-Android/settings.gradle you are defining:

include ':app', ':mobmuplatandroidwear'

Gradle is searching for a build.gradle in the mobmuplatandroidwear module which is not present.

Upvotes: 1

Janki Gadhiya
Janki Gadhiya

Reputation: 4510

Your app/build.gradle is containing one line

 wearApp project(':mobmuplatandroidwear')

Remove that and try to sync the project.

Hope this helps.

Upvotes: 2

Related Questions