Kotlin / anko-example

A small application built with Anko DSL
https://github.com/JetBrains/anko
Apache License 2.0
284 stars 64 forks source link

Anko library does not resolve #1

Closed burntcookie90 closed 9 years ago

burntcookie90 commented 9 years ago

getting the following:

Error:(43, 13) Failed to resolve: org.jetbrains.kotlin:anko:0.5-15s

app/build.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:0.11.91'
    }
}

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

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "io.dwak.blah"
        minSdkVersion 16
        targetSdkVersion 22
        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(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'org.jetbrains.kotlin:kotlin-stdlib:0.11.91'
    compile 'org.jetbrains.kotlin:anko:0.5-15s'
    compile 'io.reactivex:rxjava:1.0.8'
    compile 'io.reactivex:rxandroid:0.24.0'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
}
Javi commented 9 years ago

I just cloned the project and it ran without a hitch. Maybe try again?