techery / progresshint

ProgressBar/SeekBar delegate to show floating progress with style
Apache License 2.0
374 stars 59 forks source link

Error:Module 'com.github.techery:progresshint:0.2.3' depends on one or more Android Libraries but is a jar #3

Closed mhordii closed 8 years ago

mhordii commented 8 years ago

Error:Module 'com.github.techery:progresshint:0.2.3' depends on one or more Android Libraries but is a jar

Grudle app file:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 'Google Inc.:Google APIs:23'
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.mgordey.fline2beta"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.+'
    compile 'com.android.support:design:23.+'
    compile 'com.github.techery:progresshint:0.2.3'
}

Grudle project file:

// 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.0.0-alpha5'

        // 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
}
almozavr commented 8 years ago

There are two modules to depend on: library and library-addition. You should choose one to depend on, e.g.: compile 'com.github.techery.progresshint:library:0.2.3'