Hi!
I’m trying to create an app using react-native but I have some issue.
For now I’m testing only on android but the main problem for now is that the app works on simulator and on real device in debug mode. If I create the apk (gradlew assembleRelease) the app crashes on startup on my device.
During the build of the release I have several warnings like that one:
Gradle detected a problem with the following location: ‘C:\Users\xxx\Desktop\Projects\openvidu-tutorials\openvidu-react-native’. Reason: Task ‘:app:bundleReleaseJsAndAssets’ uses this output of task ‘:react-native-incall-manager:writeReleaseAarMetadata’ without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to Dealing with validation problems for more details about this problem.
but I think the most important problem is that one:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
I also tried to create a completely new react-native project but when I place inside the code from the example (converted in typescript) I have other issue about some libraries. For example I have the error inside react-native-webrtc/src/getUserMedia.ts and the error is:
Possible unhandled promise rejection (id:0): TypeError: Cannot read property ‘getUserMedia’ of null
Could you help me to solve in some way, with your version of with a complete new project?