I want to open the open source downloaded from github, but this error appears. Help me."T"

Asked 2 years ago, Updated 2 years ago, 46 views

I have to make a weekly app, so I'm making it into an Android studio

I'm trying to use open source for the first time. I just unpacked the zip file and ran it, but it didn't work When I changed the version information in the gradle, the error below appears.<

ERROR: Could not find com.android.tools.build:gradle:3.2.1.
Searched in the following locations:
    https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom
    https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar
Required by:
    :Android-Week-View-develop:unspecified
Add Google Maven repository and sync project
Open File

How is this an error to be solved?crying Except for changing the version information from the gradle after opening the open source, there is no change in the setting.

The following is the gradle of the open source project.

// 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:3.2.1'

        // // NOTE: Do not place your application dependencies here; they belong
        // // in the individual module build.gradle files
    }
}

allprojects {
    version = VERSION_NAME
    group = GROUP

    repositories {
        jcenter()
    }
}

android github

2022-09-22 11:06

1 Answers

In the gradle of the project you are working on

implementation 'com.github.alamkanak:android-week-view:1.2.6'

Please add one more line.


2022-09-22 11:06

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.