pfertyk / webrtc-working-example

Tested on local and public network.
The Unlicense
154 stars 62 forks source link

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

Open AshishGarg1988 opened 1 year ago

AshishGarg1988 commented 1 year ago

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

pfertyk commented 7 months ago

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ł