koin: Error while app building with dexguard
Hi, i want to move a project from Toothpick to Koin. In the project is used the dexguard lib for protection.
At the building time, i getting en error.
This is the end of stactrace.
Unexpected error while computing stack sizes:
Class = [o/hD$if$10]
Method = [ˏ(Ljava/lang/Object;)Ljava/lang/Object;]
Exception = [java.lang.IllegalArgumentException] (Stack size becomes negative after instruction [18] astore v5 in [o/hD$if$10.ˏ(Ljava/lang/Object;)Ljava/lang/Object;])
:app:dexguardRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dexguardRelease'.
> Stack size becomes negative after instruction [18] astore v5 in [o/hD$if$10.ˏ(Ljava/lang/Object;)Ljava/lang/Object;]
* 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 3m 25s
31 actionable tasks: 31 executed
ERROR: Job failed: exit code 1
Is it en error of a dexguard or a koin? How can i fix it?
P.S. This is error i have got after implementing the koin.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (8 by maintainers)
Fixed a regression about this topic. Fixed in
1.0.0-beta-5, you won’t required any proguard rule for Koin or break any dex/shrink tool.Ok i’ll try to do it as soon as posible. Thanks for you responsiveness!
Thanks again! I really liked the koin with its simplicity! I use one in another personal project.
You could.
1.0.0-beta-5is already a good one. You can start to use it to make your first tests.depends on the used module,
with koin_version as
1.0.0-beta-5