Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaterialShowcaseView not found during gradle build #178

Open
LadySith opened this issue Jul 2, 2019 · 1 comment
Open

MaterialShowcaseView not found during gradle build #178

LadySith opened this issue Jul 2, 2019 · 1 comment

Comments

@LadySith
Copy link

LadySith commented Jul 2, 2019

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants