channel-io / channel-io/react-native-channel-io

0.7.6 버전업 이후 android 빌드 문제 - Could not find com.facebook.react:react-native:.

Open
#97 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13
Forks
20
PR merge metrics
No merged PRs in 30d

Description

안녕하세요. 이번에 채널톡 sdk를 사용하려고 하던 중에, 안드로이드에서 발견한 문제입니다.
결론부터 말씀드리면 채널톡의 문제보단 릴리즈에서도 말씀하신 [Android build failures](https://github.com/facebook/react-native/issues/35210) 문제에서 파생한 문제였습니다.

react native 0.68.1 버전을 사용중인데 android로 실행할 시, 아래와 같은 에러가 발생하였습니다.
![에러](https://user-images.githubusercontent.com/35055310/210934688-713fec81-ecd0-4265-a22e-e80d06a8f3b3.png)

이후, react-native-channel-plugin의 dependencies를 확인해보니
```
dependencies {
implementation 'com.facebook.react:react-native'
api 'io.channel:plugin-android:10.0.7'
}
```
'com.facebook.react:react-native:+'가 아닌 'com.facebook.react:react-native'로 되어 있어 ':+'를 붙여서 돌려보니 정상적으로 진행된 것을 확인하였습니다.

이후 채널톡 버전을 살펴보니 0.7.6버전에서 해당 부분을 변경하셨고 위의 링크를 들어가서 보니,
![빌드처리](https://user-images.githubusercontent.com/35055310/210935043-83d92de0-14d5-45bb-b3ad-7cc44500dca7.png)

위처럼 RN 버전별로 최신 버전으로 업데이트하면 정상적으로 처리 된다고 하여 해결하였습니다.
혹시나 저와 같은 분이 있을까봐 issue 남겨놓았습니다.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking the react-native-channel-plugin Android dependencies declaration and reproduce the failure with React Native 0.68.1. Compare resolution of com.facebook.react:react-native with and without the version marker, then verify that an Android build succeeds for the affected setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.