'When I am generating a signed bundle in Android Studio I am getting error in iText layout-7.1.11.jar
I am generating a signed bundle in Android Studio I am getting below error:
Cannot constrain type: @Nullable java.lang.Object {} for value: v89 by constraint: INT
Execution failed for task ':app:minifyReleaseWithR8'.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: Lcom/itextpdf/layout/renderer/TableRenderer;layout(Lcom/itextpdf/layout/layout/LayoutContext;)Lcom/itextpdf/layout/layout/LayoutResult;, origin: C:\Users\Arbaz.gradle\caches\modules-2\files-2.1\com.itextpdf\layout\7.1.11\6d1e137ffb0ea2588ffc8a9eeb95d5c30b850a8a\layout-7.1.11.jar:com/itextpdf/layout/renderer/TableRenderer.class
- 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.
I have tried to exclude the classes in Progaurdin file progaurd-rules.pro as below but no success, getting same error message.
-keep public class com.itextpdf.layout.layout.* -keep public class com.itextpdf.layout.renderer.* -keepclassmembers class com.itextpdf.layout.layout.** { ; } -keepclassmembers class com.itextpdf.layout.renderer.* { *; }
iText7 dependency:
implementation 'com.itextpdf:itext7-core:7.1.11'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
