我已经从GitHub导入了一个项目,但是在Build Output中得到了这个错误:
<ij_msg_gr>Project resolve errors<ij_msg_gr><ij_nav>C:\Users\jasmi\Desktop\Android Apps\vFACE-master1\vFACE-master\build.gradle<ij_nav><i><b>root project 'VFACE': Unable to resolve additional project configuration.</b><eol>Details: org.apache.tools.ant.BuildException: Basedir C:\Users\jasmi\Desktop\Android Apps\vFACE-master1\ClientLibrary\lib does not exist</i>
这是我单击文件后得到的:
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :lib.
我将分享我的项目构建等级,Settigs gradle和app gradle
'''
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.vface"
minSdkVersion 24
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.google.android.material:material:1.2.0-alpha05'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'com.google.firebase:firebase-auth:19.3.0'
implementation 'androidx.navigation:navigation-fragment:2.2.1'
implementation 'androidx.navigation:navigation-ui:2.2.1'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.firebase:firebase-analytics:17.3.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-places:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-vision:19.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.firebase:firebase-ml-vision:24.0.1'
implementation 'com.google.firebase:firebase-ml-vision-face-model:19.0.0'
implementation 'com.google.android.gms:play-services-vision:19.0.0'
implementation files('libs/crop-image-view-0.0.1.jar')
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'com.github.zjywill:roundedcornerimageview:1.1.0'
implementation 'com.wdullaer:materialdatetimepicker:4.2.3'
implementation 'io.paperdb:paperdb:2.5'
implementation 'com.google.firebase:firebase-storage:19.1.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.firebase:firebase-database:19.2.1'
implementation 'com.squareup:otto:1.3.8'
implementation 'com.github.FrangSierra:RxFirebase:1.5.6'
implementation project(path: ':lib')
implementation 'com.ramijemli.percentagechartview:percentagechartview:0.3.0'
implementation 'com.github.mohammadatif:Animatoo:master'
}
'''
这是我的设置:
include ':app'
include 'lib'
project(':lib').projectDir = file('../ClientLibrary/lib')
rootProject.name='VFACE'
这是我的项目:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.google.gms:google-services:4.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
请帮助我解决问题。