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
What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
┌─ Flutter Fix ──────────────────────────────────────────────────────────────┐
│ [!] The shrinker may have failed to optimize the Java bytecode. │
│ To disable the shrinker, pass the --no-shrink flag to this command. │
│ To learn more, see: https://developer.android.com/studio/build/shrink-code │
└────────────────────────────────────────────────────────────────────────────┘
Exception: Gradle task assembleRelease failed with exit code 1
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 AndroidGradleBuilder.buildGradleApp (package:flutter_tools/src/android/gradle.dart:444:7)
I wasn't really sure about the bug report but for future I'll use it. The issue seems get resolved by setting the minifyEnabled and shrinkResources to false in release block of app/build.gradle but it leads to increase in app size (obvious). I'll try to share repo link due to confidentiality right now I can't
Note I didn't ask for the repo for the actual project that you're working on. Rather, I asked for a repo with a minimal app that can reproduce the issue. These are different things
After adding
proguard-rules.pro
the following error occurred during the compilation in release build. I'm using the lastest version of the plugin.Details
R8: com.android.tools.r8.errors.b: Attribute Signature requires InnerClasses attribute. Check -keepattributes directive.
FAILURE: Build failed with an exception.
Execution failed for task ':app:minifyReleaseWithR8'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 33s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────┐
│ [!] The shrinker may have failed to optimize the Java bytecode. │
│ To disable the shrinker, pass the
--no-shrink
flag to this command. ││ To learn more, see: https://developer.android.com/studio/build/shrink-code │
└────────────────────────────────────────────────────────────────────────────┘
Exception: Gradle task assembleRelease failed with exit code 1
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 AndroidGradleBuilder.buildGradleApp (package:flutter_tools/src/android/gradle.dart:444:7)
#2 AndroidGradleBuilder.buildApk (package:flutter_tools/src/android/gradle.dart:184:5)
#3 AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:577:7)
#4 FlutterDevice.runCold (package:flutter_tools/src/resident_runner.dart:505:33)
#5 ColdRunner.run (package:flutter_tools/src/run_cold.dart:71:28)
#6 AppDomain.launch. (package:flutter_tools/src/commands/daemon.dart:638:9)
#7 AppDomain.launch (package:flutter_tools/src/commands/daemon.dart:636:5)
#8 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:583:15)
#9 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1183:27)
#10 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#11 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
#12 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
#13 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#14 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
#15 run.. (package:flutter_tools/runner.dart:62:9)
#16 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#17 main (package:flutter_tools/executable.dart:94:3)
`
The text was updated successfully, but these errors were encountered: