hnadeem
November 29, 2023, 12:49pm
1
I have enabled newArchEnabled and builds are failing for Android.
Debugging : I can build the app successfully by removing react-native-auth0.
Version : 3.0.2
Issue : react_codegen_RNAuth0Spec
Logs :
CMake Error /node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:124 (target_link_libraries):
Cannot specify link libraries for target “react_codegen_RNAuth0Spec” which
is not built by this project.
react-native-auth0 version
3.0.2
React Native version
0.72.7
opened 12:12PM - 20 Nov 23 UTC
bug
### Checklist
- [X] The issue can be reproduced in the [react-native-auth0 samp… le app](https://github.com/auth0-samples/auth0-react-native-sample) (or N/A).
- [X] I have looked into the [Readme](https://github.com/auth0/react-native-auth0#readme), [Examples](https://github.com/auth0/react-native-auth0/blob/master/EXAMPLES.md), and [FAQ](https://github.com/auth0/react-native-auth0/blob/master/FAQ.md) and have not found a suitable solution or answer.
- [X] I have looked into the [API documentation](https://auth0.github.io/react-native-auth0/) and have not found a suitable solution or answer.
- [X] I have searched the [issues](https://github.com/auth0/react-native-auth0/issues) and have not found a suitable solution or answer.
- [X] I have searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
### Description
I have enabled **newArchEnabled** and builds are failing for Android.
**Debugging**: I can build the app successfully by removing react-native-auth0.
**Version**: 3.0.2
**Issue**: react_codegen_RNAuth0Spec
**Logs**:
CMake Error /node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:124 (target_link_libraries):
Cannot specify link libraries for target "react_codegen_RNAuth0Spec" which
is not built by this project.
Call Stack (most recent call first):
---------------------------
> Task :app:configureCMakeDebug[arm64-v8a] FAILED
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
---------------------------
### Reproduction
1. Enable newArchEnabled
> Build fails
3. Disable newArchEnabled
> Build successfully
4. Remove react-native-auth0 & Enable newArchEnabled
> Build successfully
### Additional context
_No response_
### react-native-auth0 version
3.0.2
### React Native version
0.72.7
### Expo version
_No response_
### Platform
Android
### Platform version(s)
0.72.7