Library linking issue after upgrading to React Native 0.70.3 - react-native

We upgraded the mobile development project we are working on to React Native v0.70.3 from 0.66.4 and our build starting to give all sort of issue in our build server after that. Both iOS and Android builds are failing with following error messages.
Android:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-camera-kit:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/Users/jenkinsoffshore/CICDBuilds/workspace/Mobile-Service-Android/node_modules/react-native-camera-kit/android/build/intermediates/merged_res/release/values/values.xml:2784: AAPT: error: resource android:attr/lStar not found.
iOS:
iOS build ends in success and we can upload to testflight as well. but getting the following error in email and the app crashes in devices.
ITMS-90863: Apple silicon Macs support issue - The app links with libraries that are not present on Mac:
#rpath/hermes.framework/hermes
After you’ve corrected the issues, you can upload a new binary to App Store Connect
We upgraded the MacOS version to Ventura and Xcode along with in the build machine. In developer machine both builds work fine.
Do we have to do anything specifically after upgrading to React Native 0.70.3?

Downgrade to atmost react-native 0.69

Rebuilding the server completely solve the issue. We had to setup everything from scratch. There must be a simple solution that that but project deadlines made us to go for a full re-inttall.

Related

info Installing the app... FAILURE: Build failed with an exception. in react native

I am new in react native, I have followed all the instruction as in react native getting started guide. When i enter the 'npx react-native run-android' command. The metro server starts and gives an error.
Metro server error image
Visual Studio Code terminal error
My node and jdk version are the same as mentioned on their website.
node and jdk version
Android sdk versions are also same.
android sdk
I have also tried it on my physical device same error occurs every time.
environment variable is also added.
[Environment variable] (https://i.stack.imgur.com/m8ik1.png)

react-native appcenter-crashes does not log issues

I currently using react-native 0.65.
But crashes does not show on ms appcenter
I followed these instruction
https://learn.microsoft.com/en-us/appcenter/sdk/getting-started/react-native#3-add-the-app-center-sdk-modules
https://learn.microsoft.com/en-us/appcenter/sdk/crashes/react-native
I build an APK throwing an error
Then installed it on a device.
The app crashed but no item log registered on appcenter.
Any solutions for this?
Thank you

App center Error: /Users/runner/work/1/s/android/gradlew failed with return code: 1

I'm using react native to build my apps and thought to give Microsoft app center a chance.
The main issue I have is that I cannot finish the build.
This should be a non-production build that will be tested by the QA team.
This is the error I get:
I have found the issue.
I was the Gradle version, there is no 7.3**
The latest version is 7.1.1 so when I changed the URL to gradle-7.1.1-all.zip It worked.

React-Native-Camera can't compile to android emulator

I am busy trying to implement camera functionality into an app I am writing in react-native. I have installed react-native-camera via npm and have this working solidly in IOS.
When I try and run on android, the project does not build and throws below error
node_modules/react-native-camera/android/src/main/java/org/reactnative/camera/events/BarCodeReadEvent.java:27: error: no suitable method found for init(int)
I have specified the correct android sdk build tools as described on https://github.com/react-native-community/react-native-camera.
I can run simple projects on my android emulator but as soon as I link the react-native-camera, I am unable to build. Does anyone have any ideas, or experience with this?
I am developing on a mac and as mentioned above. Everything works perfectly on the IOS app.

react-native android app gives error , but iOS works

i am new to react native
i followed the instructions on facebook react-native site to install java, Android Studio, SDK and SDK tools
the emulator is up and running , paths are correct. but when running the app i get
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':app'.
Failed to notify project evaluation listener.
javax/xml/bind/annotation/XmlSchema
the same app IOS runs , i even tried Android USB debugging
help please
anyone?
The problem was Java 9. even though react-native site asks you to install Java SDK 8 or later , then 9 installation doesn't work for some reason. I uninstalled 9 and installed 8 and it worked like a charm
This normally happens when the JDK is not correctly installed or the JAVA_HOME has not properly been set. Make sure to export your JAVA_HOME path. and have a working JDK version running on your computer.