-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Task :app:minifyReleaseWithR8 FAILED #36505
Comments
Found solution for this problem, there is a package called |
Well, I see that you apparently solved it your way. But I'll leave some help here for possible similar problems. ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /home/user/Desktop/Apps/Project/my-app/android/app/build/outputs/mapping/release/missing_rules.txt. If you see this error in your error logs, just go to the folder where it says in the log, copy the codes that are in the missing_rules.txt file And paste it into your proguard-rules.pro file |
this worked, Thanks 🙏 |
This worked for me, but only to build my release version. But the builded application crashes on initialization... The other part for my solution was to add the following line to my gradle.propeties as suggested in the R8's documentation: android.enableR8.fullMode=false this remove the R8's additional optimizations. |
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 showupFAILURE: Build failed with an exception.
Execution failed for task ':app:minifyReleaseWithR8'.
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
wix/Detox#2452
https://stackoverflow.com/questions/60896733/execution-failed-for-task-appminifyreleasewithr8-java-lang-nullpointerexcept
https://stackoverflow.com/questions/64459937/could-not-create-task-appminifyreleasewithr8-cannot-query-the-value-of-this
Snack, code example, screenshot, or link to a repository
Unfortunately, I can't choose the option yet.
The text was updated successfully, but these errors were encountered: