2017-02-16 10 views
1

Androidプロジェクトにライブラリを追加しようとしています。私はエラーを取得したGradle and Android:依存関係を解決できませんでしたcom.android.support

Failed to resolve: com.github.Kunzisoft:AndroidClearChroma:1.6

ので、私はallprojectsrepositoriesmaven { url "https://jitpack.io" }を追加しました。以前のエラーはなくなりましたが、予期しないエラーが新たに発生しました:

Error:FAILURE: Build failed with an exception. 

What went wrong: 
A problem occurred configuring project ':app'. 
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'. 
    > Could not find com.android.support:appcompat-v7:25.1.1. 
    Required by: 
     project :app 
     project :app > com.android.support:design:25.1.0 
    > Could not find com.android.support:support-annotations:25.1.1. 
    Required by: 
     project :app > com.android.support:recyclerview-v7:25.1.0 
     project :app > com.android.support:design:25.1.0 > com.android.support:transition:25.1.0 
     project :app > com.android.support:recyclerview-v7:25.1.0 > com.android.support:support-compat:25.1.0 
     project :app > com.android.support:recyclerview-v7:25.1.0 > com.android.support:support-core-ui:25.1.0 
     project :app > com.android.support:design:25.1.0 > com.android.support:support-v4:25.1.0 > com.android.support:support-media-compat:25.1.0 
     project :app > com.android.support:design:25.1.0 > com.android.support:support-v4:25.1.0 > com.android.support:support-core-utils:25.1.0 
    > Could not find com.android.support:appcompat-v7:25.1.1. 
    Required by: 
     project :app > com.github.Kunzisoft:AndroidClearChroma:1.6 
    > Could not find com.android.support:preference-v7:25.1.1. 
    Required by: 
     project :app > com.github.Kunzisoft:AndroidClearChroma:1.6 
    > Could not find com.android.support:support-annotations:25.1.1. 
    Required by: 
     project :app > com.github.Kunzisoft:AndroidClearChroma:1.6 

Try: 
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. 

Gradleのような基本的なAndroidライブラリは見つかりませんでした。どうすれば修正できますか?

それは私のトップレベルのbuild.gradleです:

// Top-level build file where you can add configuration options common to all sub-projects/modules. 
buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.3' 

     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 
allprojects { 
    repositories { 
     jcenter() 
     maven { url "https://jitpack.io" } 
    } 
} 
task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

答えて

3

Googleのpropriatoryモジュールcom.android.support*.*は、公共のMavenリポジトリから利用できません。必要なバージョン(あなたのケースでは25.1.0または25.1.1)をandroid-sdk-managerからローカルにインストールする必要があります。

関連する問題