webrtc-working-example icon indicating copy to clipboard operation
webrtc-working-example copied to clipboard

react-native\react.gradle' as it does not exist

Open AshishGarg1988 opened this issue 1 year ago • 1 comments

When i run command after on mobile directory npx react-native run-android it failed due to two reason

  1. react-native\react.gradle' as it does not exist
  2. com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

Can you please help to resolve these

Thanks

AshishGarg1988 avatar Jul 24 '23 16:07 AshishGarg1988

Hi!

I am very sorry about the delayed response :( I tried to take a look at the mobile app and upgrade it, and, well, there was a lot of issues ... The new structure of React Native is a bit different, and I think that the new WebRTC modules were also significantly modified.

Please keep in mind that the mobile app was created in React Native in order to reuse the already existing JS code, and only as a simple example. There were many issues with e.g. websockets and WebRTC modules in node.js. As a result, I had to use very specific versions of those modules, and add very carefully crafted changes to the config files of React Native / Android.

Because of this, upgrading the mobile app will not be easy ... It should, however, work with the original version of React Native and other dependencies. Could you please make sure that you're using the original setup without any changes? In that case, does the app work correctly?

I'll try to upgrade the project again sometime soon, and if I fail, I'll at least add a note to the README that only a specific version of React Native works with this example. I also consider adding a different framework for the mobile app (e.g. Flutter), perhaps making it easier to maintain in the future.

Best regards, Paweł

pfertyk avatar Mar 21 '24 10:03 pfertyk