728x90
* What went wrong:
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not find com.yqritc:android-scalablevideoview:1.0.4.
Searched in the following locations:
- file:/Users/user/project/lll/node_modules/react-native/android/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- file:/Users/user/project/lll/node_modules/jsc-android/dist/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://repo.maven.apache.org/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://dl.google.com/dl/android/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://www.jitpack.io/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
react-native-video 설치 후
빌드 과정에서 위 에러가 발생했다.
먼저, 설치방법
yarn add react-native-video
cd io && pod install && cd ..
npx react-native link react-native-video
위 에러 해결을 위한 단서는
https://github.com/react-native-video/react-native-video/issues/2454
위 링크에서 확인할 수 있었다.
// android/build.gradle
allprojects {
repositories {
.... # Keep the rest
jcenter() {
content {
includeModule("com.yqritc", "android-scalablevideoview")
}
}
}
}
728x90
반응형
'개발, 코딩 > App - React Native' 카테고리의 다른 글
channel.io ios 빌드에러 [react-native-channel-plugin] (1) | 2022.07.22 |
---|---|
ReactNative - 쉽고 간단하게 애니메이션 뷰 구현 (0) | 2022.05.24 |
[solved] Android Gradle plugin requires Java 11 to run (0) | 2022.05.18 |
AppDelegate.mm -> AppDelegate.m 변환 이슈 (1) | 2022.05.16 |
react-native-admob/admob 가이드 (3) - 코드 작성 (0) | 2022.05.02 |