Description
Description
Hi, I wondering if there is way to solve this problem, I got this problem when I want to build my apps using command ./gradlew assembleRelease
and after waiting 89% process for build, then this error showup. I already following few option and clue but the problem stil showup
Task :app:minifyReleaseWithR8 FAILED
ERROR:/Users/billdelvin/.gradle/caches/transforms-3/265611c8801979aeb3f4ce2fa85c66b8/transformed/jetified-react-native-0.69.8-release-runtime.jar: R8: Type com.facebook.fbreact.specs.NativeDevLoadingViewSpec is defined multiple times: /Users/billdelvin/.gradle/caches/transforms-3/265611c8801979aeb3f4ce2fa85c66b8/transformed/jetified-react-native-0.69.8-release-runtime.jar:com/facebook/fbreact/specs/NativeDevLoadingViewSpec.class, /Users/billdelvin/Documents/project/sentris-resident/front-end/sentris_mobile_security/android/app/build/intermediates/javac/release/classes/com/facebook/fbreact/specs/NativeDevLoadingViewSpec.class
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /Users/billdelvin/.gradle/caches/transforms-3/265611c8801979aeb3f4ce2fa85c66b8/transformed/jetified-react-native-0.69.8-release-runtime.jar:com/facebook/fbreact/specs/NativeDevLoadingViewSpec.class
React Native Version
0.69.8
Output of npx react-native info
System:
OS: macOS 13.2.1
CPU: (8) arm64 Apple M1 Pro
Memory: 140.89 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
Watchman: 2023.03.06.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 21, 23, 28, 29, 30, 31, 32, 33
Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 33.0.0, 33.0.0, 33.0.0, 34.0.0
System Images: android-31 | Google Play ARM 64 v8a, android-32 | Google APIs ARM 64 v8a
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9514443
Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild
Languages:
Java: 11.0.16.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.8 => 0.69.8
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Snack, code example, screenshot, or link to a repository
Unfortunately, I can't choose the option yet.