Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Project is outdated #26

Open
thakurakhilesh1998 opened this issue May 11, 2020 · 1 comment
Open

Project is outdated #26

thakurakhilesh1998 opened this issue May 11, 2020 · 1 comment

Comments

@thakurakhilesh1998
Copy link

Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.android.tools.build:gradle:2.2.0.

@Tiam-Abderezai
Copy link

Tiam-Abderezai commented Jun 1, 2020

@thakurakhilesh1998

If you're having trouble starting the XYZ-Reader project, do the following:

  1. Update the "distributionUrl" attribute in your gradle-wrapper.properties file to 5.6.4:

  2. Make sure the "classpath" version in your build.gradle module and project match. (mine is 3.6.2 for both of them)

  3. Replace the contents of your build.gradle file with the following:

buildscript {
    repositories {
        mavenCentral()
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.2'
    }
}
apply plugin: 'com.android.application'

repositories {
    mavenCentral()
}

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"

    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 25
    }
}

dependencies {
    implementation "com.android.support:support-v4:$androidSupportVersion"
    implementation "com.android.support:support-v13:$androidSupportVersion"
    implementation "com.android.support:appcompat-v7:$androidSupportVersion"
    implementation "com.android.support:palette-v7:$androidSupportVersion"
    implementation "com.android.support:recyclerview-v7:$androidSupportVersion"
    implementation "com.android.support:cardview-v7:$androidSupportVersion"
    implementation 'com.squareup.okhttp3:okhttp:3.1.2'
    implementation files('libs/volley.jar')
}

  • You may run into an issue where your NDK is missing. Simply go to :
    File>Project Structure> SDK Location > Download Android NDK.

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

No branches or pull requests

2 participants