react-native-webview를 사용할 때

gradle.properties에 다음을 추가해야 한다.

android.useAndroidX=true
android.enableJetifier=true

추가한 후에 빌드할 때 react-native-admob에서 빌드 실패가 나는 경우가 발생한다.

> Task :react-native-admob:compileDebugJavaWithJavac FAILED

이런 경우 jetifier를 설치하면 해결할 수 있다.

$ npm install --save-dev jetifier
$ npx jetify

참고 문헌

  1. https://github.com/facebook/react-native/issues/25307
  2. https://stackoverflow.com/questions/53235525/issues-using-androidx-and-react-native