Can't install react-native-webrtc for android

I install react-native-firebase first, then react-native-webrtc. When I use

compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"

react-native-webrtc build failed.

Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':WebRTCModule:compileDebugJavaWithJavac

If I use
compileSdkVersion = 27
like in https://github.com/react-native-webrtc/react-native-webrtc/blob/master/Documentation/AndroidInstallation.md
Firebase build failed

Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:react-native-firebase:compileDebugJavaWithJavac’.

Please help me to fix it

1 Like