2017-02-02 10 views
1

を解決:トラブル私はあんこ-テストプロジェクト(<a href="https://github.com/yanex/anko-example.git" rel="nofollow noreferrer">https://github.com/yanex/anko-example.git</a>)をコンパイルしようとしているが、Gradleのライブラリに依存関係を解決することはできませんあんこライブラリバージョン0.9.1

Error: A problem occurred configuring project ':app'. 
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'. 
> Could not find org.jetbrains.anko:anko-sdk15:0.9.1. 
    Required by: 
    anko-example:app:unspecified 

ここに私のGradleファイルです

buildscript { 
    ext.kotlin_version = '1.0.5-2' 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 
    } 
} 

apply plugin: 'com.android.application' 
apply plugin: 'kotlin-android' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.1" 

    defaultConfig { 
     applicationId "org.example.ankodemo" 
     minSdkVersion 15 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
    } 

    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 

    sourceSets { 
     main.java.srcDirs += 'src/main/kotlin' 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:appcompat-v7:25.1.1' 
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 
    compile 'org.jetbrains.anko:anko-sdk15:0.9.1' 
} 

私はプロジェクトを複製した後も何も変更していません。アイデアは何が起こっていますか?

+0

https://github.com/yanex/anko-example/blob/master/app/build.gradle –

+2

です:

一時的な解決策は、あなたのルートbuild.gradleファイルにアンコのbintrayリポジトリを追加することです私がクローンしたプロジェクトは、ビルド時に私が投稿するエラーメッセージが表示されます。私はこの 'compile 'org.jetbrains.anko:anko-sdk15:0.9''を使って以前のバージョンを試してみました。だから私はそこに '0.9.1'バージョンの問題があると思います。 – tufekoi

+0

show' build.gradle' –

答えて

2

known issue(この依存関係はまだjcenterに同期されていません)と思われます。

allprojects { 
    repositories { 
     jcenter() 
     maven { url 'https://dl.bintray.com/jetbrains/anko' } 
    } 
} 
関連する問題