투케이2K

239. (AndroidStudio/android/java) 에러 해결 - Received status Bad Gateway , Unable to resolve dependency 본문

Android

239. (AndroidStudio/android/java) 에러 해결 - Received status Bad Gateway , Unable to resolve dependency

투케이2K 2021. 12. 22. 21:58

[개발 환경 설정]

개발 툴 : AndroidStudio

개발 언어 : java

 

[소스 코드]

 

buildscript {
    repositories {
        mavenCentral()
        jcenter()
        google()
        maven {
            url "https://maven.google.com"
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.2'

        // [파이어베이스 크래시 리틱스 오류 보고]
        classpath 'com.google.gms:google-services:4.0.1'
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.1.1'
    }
}




repositories {
    maven { url "https://jitpack.io" }
    mavenCentral()

    // [주석 처리 실시]
//    maven {
//        url "http://dl.bintray.com/journeyapps/maven"
//    }

    maven {   url "https://maven.google.com"  }
    jcenter()
    google()
}
allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
        maven {
            url "https://maven.google.com"
        }
    }
}




dependencies {
    implementation fileTree(dir: 'libs', include: '*.jar')
    //noinspection GradleCompatible
    implementation 'androidx.appcompat:appcompat:1.0.0'

    // [AppCompat implements 에러 추가]
    implementation "androidx.activity:activity-ktx:1.2.0-alpha03"
}

 
반응형
Comments