2017-12-14 18 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それを残すプロジェクトでMavenのサポートを追加しておく必要がありますダウンロードとリンクライブラリ

関連する問題