1
나는 ANKO 테스트 프로젝트 (https://github.com/yanex/anko-example.git)를 컴파일하기 위해 노력하고있어하지만 Gradle을 라이브러리에 의존 해결할 수 :문제 해결 ANKO 라이브러리 버전 0.9.1
여기 내 Gradle을 파일입니다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
을 :
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
파일을 ANKO의 bintray 저장소를 추가하는 것입니다 내가 복제 한 프로젝트는 내가 만들 때 내가 게시 한 오류 메시지가 나타납니다. 나는이'compile 'org.jetbrains.anko : anko-sdk15 : 0.9 ''로 이전 버전을 시도해 보았습니다. 그래서'0.9.1' 버전에 문제가 있다고 생각합니다. – tufekoishow'build.gradle' –