-
-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to create android build due to cmake debug|arm64-v8a : com.google.prefab.api.NoMatchingLibraryException: No compatible library found for //ReactAndroid/hermestooling. Rejected the following libraries #2591
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
|
I am getting below error even for new project as well. `2 files found with path 'lib/arm64-v8a/libfbjni.so' from inputs:
|
@Muhammad-Hassam Thanks for the report, however in current state it indicates some environment misconfiguration rather than a library issue, moreover you haven't posted a reproduction what indicates to me, that this does not happen on clean projects, but rather only in your specific environment. I'll mark the ticket as stale - tag me in case you have a reproduction / more information Right now, with this little of diagnostic information I won't be able to provide you with any more help. One thing to do is to nuke the caches as I indicate below 👇🏻 It's always worth a shot. @atifaziz1, you should just clear the gradle caches, build caches and run clean build.
|
@kkafar i was running my project on react native version 0.73.5 at this time i was using react-native-screens version ^3.29.0 it was working fine now i have updated my react native to 0.76.5 so i got this error and with react native i also updated the react-native-screens version to 4.4.0. just i clean the build and caches also and run the android command. using i also checked newArchEnabled=false but still got same error BUILD FAILED in 11s
i also set minSdkVersion=24 System: iOS: let me know if i'm doing wrong anything thank you |
Dear @kkafar, I follow your steps but still i am facing same issue. |
This is really frustrating. |
Dear @Muhammad-Hassam, you don't need to update NDK version if newArchEnabled is false. The problem is with enabling new architecture. I am still facing same issue. |
@atifaziz1 i checked it without upgrading ndk version i changed newArchEnabled=false got the same error when i upgraded ndk version so i found solution may be depend on system architecture. But yup we need solution for newArchEnabled=true. |
@fynally @Muhammad-Hassam @atifaziz1 is anyone able to provide a reproduction? |
@kkafar The issue happens even with the new react-native-cli bare workflow app. Below are two errors I'm facing. FAILURE: Build failed with an exception.
|
@sahilkakwani9 could you provide me with exact steps of how do you create fresh app to get these errors? |
Description
i've updated react native version from 0.73.4 to 0.76.5 using react native upgrade helper and update other libraries also. IOS build is successfully running but giving error on android
Task :app:compileDebugKotlin FAILED
Task :react-native-screens:configureCMakeDebug[arm64-v8a] FAILED
C/C++: /Users/Downloads/node_modules/react-native-screens/android/CMakeLists.txt debug|arm64-v8a : com.google.prefab.api.NoMatchingLibraryException: No compatible library found for //ReactAndroid/hermestooling. Rejected the following libraries:
425 actionable tasks: 44 executed, 381 up-to-date
Steps to reproduce
Snack or a link to a repository
https://github.com/
Screens version
^4.4.0
React Native version
0.76.5
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: