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

Groovy SDK has changed. #124

Closed
vvlabs opened this issue May 7, 2019 · 2 comments
Closed

Groovy SDK has changed. #124

vvlabs opened this issue May 7, 2019 · 2 comments

Comments

@vvlabs
Copy link

vvlabs commented May 7, 2019

I'm getting this error when i'm trying to build to test:
Could not find org.codehaus.groovy:groovy-all:2.4.12.
Searched in the following locations:
file:/C:/Users/udayv/AppData/Local/Android/Sdk/extras/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.pom
file:/C:/Users/udayv/AppData/Local/Android/Sdk/extras/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar
file:/C:/Users/udayv/AppData/Local/Android/Sdk/extras/google/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.pom
file:/C:/Users/udayv/AppData/Local/Android/Sdk/extras/google/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar
file:/C:/Users/udayv/AppData/Local/Android/Sdk/extras/android/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.pom
file:/C:/Users/udayv/AppData/Local/Android/Sdk/extras/android/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar
https://dl.google.com/dl/android/maven2/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.pom
https://dl.google.com/dl/android/maven2/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar
Required by:
project :app > com.android.tools.lint:lint-gradle:26.2.1

@watsoncoders
Copy link

simply change the app lvl build gradle and top lvl build gradle as such :
app lvl build gradle :
apply plugin: 'com.android.application'

compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
    applicationId "jwtc.android.chess"
    minSdkVersion 14
    targetSdkVersion 28
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
lintOptions {
    disable 'MissingTranslation'
}

}

dependencies {
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.android.gms:play-services-cast:16.2.0'
implementation 'com.google.android.gms:play-services-analytics:16.0.8'
implementation 'org.codehaus.groovy:groovy-all:2.4.12'

}

apply plugin: 'com.google.gms.google-services'

aand in the top lvl build gradle -----:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.google.firebase:perf-plugin:1.2.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.31'
}
}

allprojects {
repositories {
//mavenLocal() must be listed at the top to facilitate testing
mavenLocal()
google()
jcenter()
}
}

@jcarolus
Copy link
Owner

jcarolus commented Sep 9, 2019

Latest master tagged 8.9.5 had Gradle upgrade which fixes the issue for me. Let me know if it does not work, closing.

@jcarolus jcarolus closed this as completed Sep 9, 2019
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

3 participants