Skip to content
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

Android Release build causes crash #586

Open
mihirrai opened this issue Jul 27, 2023 · 2 comments
Open

Android Release build causes crash #586

mihirrai opened this issue Jul 27, 2023 · 2 comments

Comments

@mihirrai
Copy link

Everything works fine in release builds, until I start adding extensions.

Error thrown: java.lang.IllegalStateException: Dependent class class

The error thrown is coming from com.vladsch.flexmark.util.dependency.DependencyResolve, so pretty sure its contained within this library and something to with the android framework.

The only difference between debug and release builds is the obfuscation and shrinking. The crash is reproduced even after disabling obfuscation, didn't try disabling shrinking as it would completely bypass the logic of using R8 given the large size of the library.

@soupslurpr
Copy link

soupslurpr commented Aug 9, 2023

I am getting this issue as well, disabling shrinking makes it stop, although it is not good as it makes the app size much larger.

@FilippoVigani
Copy link

FilippoVigani commented Aug 11, 2023

I'm facing this as well ever since I started using AGP 8.0 which sets android.enableR8.fullMode to true by default. One could try to disable fullMode, but that's not ideal. Otherwise we need to find some proguard rules that add exceptions to flexmark, but I'm not sure where to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants