Develop/React Native

[React Native] 에러 모음

안다희 2020. 3. 28. 03:57
728x90

 

 

1. 카카오로그인 추가하는 과정에서 생긴 오류

* What went wrong:
Execution failed for task ':react-native-firebase:javaPreCompileDebug'.
> Could not resolve all files for configuration ':react-native-firebase:debugCompileClasspath'.
   > Could not find okhttp.jar (com.square

android/build.gradle 에서

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

        google()
        jcenter()
        maven { url 'https://jitpack.io' }
        maven { url 'http://devrepo.kakao.com:8088/nexus/content/groups/public/' }
    }
}

맨아래 kakao maven을 google보다 위에 썼더니 생긴 오류였다.

 

 

https://github.com/invertase/react-native-firebase/issues/1194

 

Could not resolve all files for configuration error while setup in android · Issue #1194 · invertase/react-native-firebase

I followed all the steps as stated in the android installation guide but still, I am continuously facing this error Could not resolve all files for configuration ':react-native-firebase:debugCo...

github.com

 

2. 라이브러리를 새로 추가해서 생기는 문제

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:25:7-34
        is also present at [:react-native-seoul_kakao-login] AndroidManifest.xml:14:9-35 value=(true).
        Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.

suggestions + manifest 수정

 

https://thisisspear.tistory.com/47

 

[Android] Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml

Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:19:9-36 is also present at [libName:versionCode] AndroidManifest.xml:12:9-35 value=(true). Suggestio..

thisisspear.tistory.com

완벽한 해결법!!!!

 

 

 

 

키해시 문제

https://right-hot.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-%ED%82%A4%ED%95%B4%EC%8B%9C-%EC%96%BB%EB%8A%94-%EB%B0%A9%EB%B2%95-debug-keyhash-release-keyhash-googlePlay-keyhash

 

 

 

 

 

Buy Me A Coffee!

https://www.buymeacoffee.com/daheeahn

 

daheeahn is app developer

Hey 👋 I just created a page here. You can now buy me a coffee!

www.buymeacoffee.com

 

 

출처: https://mingos-habitat.tistory.com/34 [밍고의서식지:티스토리]