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
Click on “Import Existing Project“. Step 2: Select the desired library and the desired module. Then click finish. Android Studio will import the library into your project and will sync Gradle files.
Importing into Android StudioOpen Android Studio and select Open an Existing Android Studio Project or File, Open. Locate the folder you downloaded from Dropsource and unzipped, choosing the “build. gradle” file in the root directory. Android Studio will import the project.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With