쉬어가세요

app의 build.gradle 의 android { } 안에 

아래의 configurations.all 를 추가하면 없어진다.

android {
    configurations.all {
        resolutionStrategy.eachDependency { DependencyResolveDetails details ->
            def requested = details.requested
            if (requested.group == "androidx.appcompat") {
                if (!requested.name.startsWith("multidex")) {
                    details.useVersion "1.+"
                }
            }
        }
    }
}

 

android studio 에서 import를 할때 


sdk location not found define location with sdk dir in the local properties file or with an android_home environment variable


가 나왔다면..


윈도우 10기준

윈도우창 우클릭 -> 시스템 -> 고급 -> 환경변수 -> 시스템 변수칸이 새로 만들기 선택 후


변수 이름에 ANDROID_HOME

변수 값에 android sdk 가 설치 되어있는 경로를 넣어줍니다.


하나더 추가로..

변수 이름에 ANDROID_NDK_HOME

변수 값에 android sdk 설치경로\ndk-bundle


해주시면 됩니다.