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'
}
私はプロジェクトを複製した後も何も変更していません。アイデアは何が起こっていますか?
https://github.com/yanex/anko-example/blob/master/app/build.gradle –
です:
一時的な解決策は、あなたのルート
build.gradle
ファイルにアンコのbintrayリポジトリを追加することです私がクローンしたプロジェクトは、ビルド時に私が投稿するエラーメッセージが表示されます。私はこの 'compile 'org.jetbrains.anko:anko-sdk15:0.9''を使って以前のバージョンを試してみました。だから私はそこに '0.9.1'バージョンの問題があると思います。 – tufekoishow' build.gradle' –