crossplatformkorea / react-native-kakao-login

react-native native module for Kakao sign in.
MIT License
352 stars 134 forks source link

안드로이드 빌드시 오류 #84

Closed sj602 closed 4 years ago

sj602 commented 4 years ago

Version of kakao-login libraries

"@react-native-seoul/kakao-login": "^2.1.0",

Version of react-native

"react-native": "0.61.2",

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

정상 빌드

Actual behavior

react-native run-android시 아래와 같은 에러가 발생합니다.

ERROR: The project name '@react-native-seoul/kakao-login' must not contain any of the following characters: [/, \, :, <, >, ", ?, *, |]. Set the 'rootProject.name' or adjust the 'include' statement (see https://docs.gradle.org/5.5/dsl/org.gradle.api.initialization.Settings.html#org.gradle.api.initialization.Settings:include(java.lang.String[]) for more details).

Tested environment (Emulator? Real Device?)

에뮬레이터

heyman333 commented 4 years ago

번거로우시겠지만 정상적으로 실행이 되는지 확인만 해보기 위해 프로젝트를 새로 생성해서 한번 더 시도 가능할가요?

제가 테스트 해볼떄는 문제없이 빌드가 잘 되네요ㅎㅎ

설치는 auto로 진행하셨나요?

minhoyooDEV commented 4 years ago

저도 같은증상입니다.

heyman333 commented 4 years ago

@minhoyooDEV 설치는 오토로 진행하신거죠?

minhoyooDEV commented 4 years ago

@minhoyooDEV 설치는 오토로 진행하신거죠?

react-native init tttt yarn add @react-native-seoul/kakao-login yarn android

한후 다음과 같습니다

$ react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 883 file(s) to forward-jetify. Using 12 workers... info JS server already running. info Installing the app...

FAILURE: Build failed with an exception.

BUILD FAILED in 6s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

BUILD FAILED in 6s

at checkExecSyncError (child_process.js:616:11)
at execFileSync (child_process.js:634:13)
at runOnAllDevices (/Users/minhoyoo/Documents/TestFolder/tttt/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)
at buildAndRun (/Users/minhoyoo/Documents/TestFolder/tttt/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:158:41)
at then.result (/Users/minhoyoo/Documents/TestFolder/tttt/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:125:12)
at process._tickCallback (internal/process/next_tick.js:68:7)

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

heyman333 commented 4 years ago

@minhoyooDEV 음 정보 감사합니다. 수정하도록 하겠습니다. 혹시 해결방법을 찾으신다면 pr을 보내주시면 감사하겠습니다 👍

minhoyooDEV commented 4 years ago

pacakge.json입니다


{
  "name": "tttt",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-seoul/kakao-login": "^2.1.0",
    "react": "16.9.0",
    "react-native": "0.61.4"
  },
  "devDependencies": {
    "@babel/core": "^7.6.2",
    "@babel/runtime": "^7.6.2",
    "@react-native-community/eslint-config": "^0.0.5",
    "babel-jest": "^24.9.0",
    "eslint": "^6.5.1",
    "jest": "^24.9.0",
    "metro-react-native-babel-preset": "^0.56.0",
    "react-test-renderer": "16.9.0"
  },
  "jest": {
    "preset": "react-native"
  }
}
minhoyooDEV commented 4 years ago

빠른피드백이네요!! 감사합니다!

heyman333 commented 4 years ago

@minhoyooDEV @sj602 아이고 제가 실수를 했네요...ㅎㅎ.ㅎㅎ https://github.com/react-native-seoul/react-native-kakao-login#android-1 혹시 위부분을 누락하진 않았는지 다시 한번 확인부탁 드릴게요 이전에 오타가 있어서 수정해서 README에 반영 했고, 바로 npm에 2.2.1로 배포 하겠습니다~

heyman333 commented 4 years ago

2.1.1에 반영되었습니다.

heyman333 commented 4 years ago

@sj602 안녕하세요 @sj602 님 아무래도 설치를 메뉴얼로 진행하셨나보네요 안드로이드 메뉴얼 설치중에 특수문자가 들어가면 안되는 사실을 오늘 테스중에 알았습니다 ㅠ.ㅠ 설치 문서를 다시 업데이트 했으니 확인 부탁드립니다~

sj602 commented 4 years ago

제가 깜빡 잊고 답장을 못 드렸네요! 지금은 덕분에 해결했습니다 ㅎㅎ 늦게나마 감사드립니다 :)