Skip to content Skip to sidebar Skip to footer

Cant Compile Project With Modules

I created an app with a library module but it's giving below build error: app/build.gradle Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project

Solution 1:

I spent a lot of time on this issue and none of above solutions work for me. The names and number of build types were also exactly equal in both app and library project.

The only mistake I was making was - In library project's build.gradle, I was using line

    apply plugin: 'com.android.application'

While this line should be -

    apply plugin: 'com.android.library'

After making this change, this error got resolved.

Post a Comment for "Cant Compile Project With Modules"