You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'll need to configure proguard to keep any classes you need if you enable it. We don't configure it in the app - which is the same code as regular React Native projects.
Description
when set minifyEnabled to true in build.gradle file buildTypes {
release {
minifyEnabled true
}
}
and after publishing the library and using the library in react-native project getting ERROR: R8: Missing class java.lang.invoke.StringConcatFactory
Packages
Selected options
create-react-native-library
Link to repro
https://anyuseanylibrary
Environment
System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1
Memory: 97.42 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.3
path: /opt/homebrew/opt/node@18/bin/node
Yarn:
version: 1.22.19
path: /usr/local/bin/yarn
npm:
version: 10.7.0
path: /opt/homebrew/opt/node@18/bin/npm
Watchman:
version: 2024.06.10.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.5
- iOS 17.5
- macOS 14.5
- tvOS 17.5
- visionOS 1.2
- watchOS 10.5
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2411.12071903
Xcode:
version: 15.4/15F31d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 21.0.3
path: /opt/homebrew/opt/openjdk@21/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.9
wanted: 0.73.9
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
The text was updated successfully, but these errors were encountered: