728x90
반응형

react native debugger 에는 로그가 나오지않아

안드로이드 스튜디오 로그캣으로 디버깅을 해보았다.

 

에러 메세지는 

 

the crashlytics build id is missing. this occurs when the crashlytics gradle plugin is missing from your app's build configuration.

 

였는데, 안드로이드에 추가로 세팅을 해줘야 하는 부분이 있었다.

 

https://rnfirebase.io/crashlytics/android-setup

 

Crashlytics - Android Setup | React Native Firebase

Copyright © 2017-2020 Invertase Limited. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. Some partial documentation, under the

rnfirebase.io

 

해당 부분을 참고하여

 

android/build.gradle

// ..
buildscript {
  // ..
  repositories {
    // ..
    google()
  }
  // ..
}

 

 

android/build.gradle

// ..
buildscript {
  // ..
  dependencies {
    // ..
    classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
  }
  // ..
}

 

 

android/app/build.gradle

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services' // apply after this line
apply plugin: 'com.google.firebase.crashlytics'
// ..

 

로 해결했다.

728x90
반응형

+ Recent posts