Reputation: 1051
The build.gradle
in the app
folder contains the following code:
dependencies {
...
compile project(':sclibrary')
}
The settings.gradle
file in the project folder contains:
include ':app', ':sclibrary'
project(':sclibrary').projectDir = new File(rootProject.projectDir, '../sclibrary4')
When I synchronize my project I get an error that says "Missing dependencies: unable to find module with Gradle path ':sclibrary' (needed by module 'app'.)"
EDIT:
"sclibrary4" is located in the folder as the "sc" and "ScLite" applications; these applications use common code located in "sclibrary4"
When I try to use the "File>New>Import Module" command, I get the error message "This location is already imported" although
and
Upvotes: 8
Views: 2301
Reputation: 3305
Something like this can be fixed with:
settings.gradle
filebuild.gradle
This worked for me on several occasions, e.g. with Android Studio 3.1.2
Upvotes: 5