독학하고있는사람
10
2021-09-30 01:29:46
0
137

깃허브에서 라이브러리를 받지 못하고 있습니다.


https://github.com/JagarYousef/Mindo에서 라이브러리를 활용하고자 합니다.

프로젝트와 모듈 build.gradle에 각각 넣으라고 한 코드를 삽입했는데 자꾸 아래와 같은 오류 메시지가 뜨네.

Failed to resolve: com.github.JagarYousef:Mindo:2.0.0
Show in Project Structure dialog
Affected Modules: app

아래는 각각 프로젝트랑 모듈 gradle 전체 코드입니다.

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    ext.anko_version='0.10.5'

    repositories {
        maven { url 'https://jitpack.io' }
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
        google()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
plugins {
    id 'com.android.application'
    id 'kotlin-android'
}

android {
    compileSdk 31

    defaultConfig {
        applicationId "com.example.mindfolioapp"
        minSdk 26
        targetSdk 31
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
    buildFeatures{
        viewBinding true
    }

}

dependencies {
    implementation "org.jetbrains.anko:anko:$anko_version"
    implementation 'androidx.core:core-ktx:1.6.0'
    implementation 'androidx.appcompat:appcompat:1.3.1'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
    implementation 'androidx.mediarouter:mediarouter:1.2.5'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
    implementation "com.github.JagarYousef:Mindo:2.0.0"
}
0
  • 답변 0

  • 로그인을 하시면 답변을 등록할 수 있습니다.