2017-12-14 12 views
0

Android 용 Gradle 건물에 문제가 있습니다. 이 문제를 해결하기 위해 많은 방법을 시도했지만 아무 것도 작동하지 않습니다. 도움이 필요해.오류 : 종속성을 해결할 수 없습니다 ... 프로젝트를 해결할 수 없습니다.

Gradle을 버전 : 4.4 Gradle을 플러그인 : 3.0.1

apply plugin: 'com.android.application' 

    android { 
     compileSdkVersion 26 
     defaultConfig { 
      minSdkVersion 21 
      targetSdkVersion 26 
      versionCode 1 
      versionName "1.0" 
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
     } 
     buildTypes { 
      release { 
       minifyEnabled false 
       proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
      } 
     } 
     buildToolsVersion '26.0.2' 
     compileOptions { 
      sourceCompatibility JavaVersion.VERSION_1_8 
      targetCompatibility JavaVersion.VERSION_1_8 
     } 
     flavorDimensions "group1" 
     productFlavors { 
      server { 
       versionName '0.1' 
       minSdkVersion 21 
       targetSdkVersion 26 
       testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner' 
       versionCode 1 
       dimension "group1" 
      } 
      mock { 
       minSdkVersion 21 
       targetSdkVersion 26 
       testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner' 
       versionCode 1 
       versionName '0.1' 
       dimension "group1" 
      } 
     } 
     configurations.all { 
      resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9' 
     } 
    } 

    dependencies { 
     implementation fileTree(include: ['*.jar'], dir: 'libs') 
     implementation 'com.android.support:appcompat-v7:26.1.0' 
     implementation 'com.android.support.constraint:constraint-layout:1.0.2' 
     testImplementation 'junit:junit:4.12' 
     androidTestImplementation 'com.android.support.test:runner:1.0.1' 
     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 
     implementation 'com.arello-mobile:moxy:1.5.3' 
     annotationProcessor 'com.arello-mobile:moxy-compiler:1.5.3' 
     implementation 'com.squareup.retrofit2:retrofit:2.3.0' 
     implementation 'com.squareup.retrofit2:converter-gson:2.3.0' 
     implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0' 
     implementation 'com.google.code.gson:gson:2.8.2' 
     annotationProcessor 'com.google.dagger:dagger-compiler:2.13' 
     implementation 'com.google.dagger:dagger:2.13' 
     implementation 'com.google.guava:guava:23.5-android' 
     implementation 'com.vk:androidsdk:1.6.9' 
     implementation project(':vksdk_library') 
    } 

오류 : ': 응용 프로그램 @ serverDebug/compileClasspath'에 대한 종속성을 확인할 수 없습니다 프로젝트를 확인할 수 없습니다 : vksdk_library합니다.

오류 : 'app @ mockDebugAndroidTest/compileClasspath'에 대한 종속성을 해결할 수 없습니다. 프로젝트를 확인할 수 없습니다 : vksdk_library.

오류 : 'app @ mockDebugUnitTest/compileClasspath'에 대한 종속성을 해결할 수 없습니다. 프로젝트를 확인할 수 없습니다 : vksdk_library.

오류 : 'app @ serverRelease/compileClasspath'에 대한 종속성을 해결할 수 없습니다. 프로젝트를 확인할 수 없습니다 : vksdk_library.

+0

'vksdk_library'라는 모듈을 가지고 있습니까? 열려있는 프로젝트에서? –

+0

네,이 모듈을 가지고 있습니다 –

+0

앱 레벨 빌드 gradle을 게시 할 수 있습니까? – Pomagranite

답변

1

As from docs, gradle dependency section 당신은 대신 전체 프로젝트 자신

참고 추가하는

implementation 'com.vk:androidsdk:1.6.9' 

를 사용할 수 있습니다 당신은 또한 받는다는 지원해야 프로젝트에 추가

As mentioned here in docs 나머지에 Gradle을두고 다운로드 및 링크 라이브러리

관련 문제