deano2390 / MaterialShowcaseView

A Material Design themed ShowcaseView for Android
Apache License 2.0
2.72k stars 526 forks source link

MaterialShowcaseView not found during gradle build #178

Open LadySith opened 5 years ago

LadySith commented 5 years ago

I'm revisiting a project I was assisting with from about a year ago. I was the last one to work on the project and there have been no changes to it since.

I pulled the project from Github and tried to build it in Android Studio but I keep running into this error during the gradle sync even when I update and revert the gradle version I'm using:

Could not find MaterialShowcaseView.aar (com.github.deano2390:MaterialShowcaseView:1.1.0).
Searched in the following locations:
    https://jitpack.io/com/github/deano2390/MaterialShowcaseView/1.1.0/MaterialShowcaseView-1.1.0.aar

Here are the build.gradle files:

build.gradle (app)

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.1"

    defaultConfig {
        applicationId "app.id.here"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 0
        versionName "0.1"
    }
    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'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.0.1'
    compile 'com.android.support:design:25.0.1'
    compile 'com.android.support:support-v4:25.0.1'
    compile 'com.android.support:recyclerview-v7:25.0.1'
    compile 'com.android.support:cardview-v7:25.0.1'
    compile 'com.getbase:floatingactionbutton:1.10.1'
    compile 'com.github.chrisbanes:PhotoView:1.2.6'
    compile 'com.android.support:support-v4:25.0.1'
    compile 'com.github.deano2390:MaterialShowcaseView:1.1.0'
    compile 'junit:junit:4.12'
}

build.gradle (project)

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    ext.kotlin_version = '1.1.4-3'
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
apply plugin: 'kotlin'
allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}
/*task clean(type: Delete) {
    delete rootProject.buildDir
}*/

/*android {
    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }
}*/
dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
repositories {
    mavenCentral()
}

I never had this problem at all the last time I worked on this project. What could be the cause of this?

johnguild commented 5 years ago

This may be late but for others encountering this, use the latest version and it should work