crossplatformkorea / react-native-kakao-login

react-native native module for Kakao sign in.
MIT License
350 stars 133 forks source link

Could not find com.kakao.sdk:usermgmt:1.7.0, Gradle Build Failed #383

Closed choijiho0021 closed 11 months ago

choijiho0021 commented 11 months ago

문제 원인, 해결방안을 확인했으나

혹시 저와 비슷한 실수를 하는 사람이 있을까봐 남깁니다.

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find com.kakao.sdk:usermgmt:1.7.0.
  Searched in the following locations:
      file:/Users/pbh/Library/Android/sdk/extras/m2repository/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.pom
      file:/Users/pbh/Library/Android/sdk/extras/m2repository/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.jar
      file:/Users/pbh/Library/Android/sdk/extras/google/m2repository/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.pom
      file:/Users/pbh/Library/Android/sdk/extras/google/m2repository/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.jar
      file:/Users/pbh/Library/Android/sdk/extras/android/m2repository/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.pom
      file:/Users/pbh/Library/Android/sdk/extras/android/m2repository/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.jar
      file:/Users/pbh/.m2/repository/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.pom
      file:/Users/pbh/.m2/repository/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.jar
      https://jcenter.bintray.com/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.pom
      https://jcenter.bintray.com/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.jar
      https://dl.google.com/dl/android/maven2/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.pom
      https://dl.google.com/dl/android/maven2/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.jar
      file:/Users/pbh/project/react/luxlabUser_20180703/luxlabUser/node_modules/react-native/android/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.pom
      file:/Users/pbh/project/react/luxlabUser_20180703/luxlabUser/node_modules/react-native/android/com/kakao/sdk/usermgmt/1.7.0/usermgmt-1.7.0.jar
  Required by:
      project :app > project :react-native-kakao-logins

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
19 actionable tasks: 1 executed, 18 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

buildscript {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath 'com.google.gms:google-services:3.1.0'

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

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        google()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

원인,

계속 Maven에서 다운로드 실패가 발생해 카카오 개발자 사이트 확인해보니 더 이상 Kakao SDK v1을 카카오에서 지원하지 않습니다.

이에 대해 카카오는 개발자 사이트에 공지를 해뒀습니다. (https://devtalk.kakao.com/t/kakao-sdk-for-android-ios-v1-notice-end-of-support-for-kakao-sdk-for-android-and-ios-v1/125250)

3월 31일 부로 Maven에서 SDK v1 버전들을 모두 내렸으므로 다운로드가 불가능하고, 기존에 설치한 사람만 이용이 가능합니다. 유예기간 11월 이후에는 API 자체가 동작 안될 예정입니다.

해결법, https://developers.kakao.com/docs/latest/ko/getting-started/sdk-android#migration SDK V2로 마이그레이션 하세요.

저처럼 옛날 프로젝트 인수인계 받고, 왜 다른 사람은 동작 되는데 나는 안되지하며

삽질하지 마세요...

choijiho0021 commented 11 months ago

원인 및 해결법 본문 참조