Reflect issue in minified android apk. Add proguard section in README?
See original GitHub issueNice lib, thx!
I received kotlin.jvm.KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar
error at runtime in minified android build but all my modules includes reflect dependency…
Got correct stacktrace only after cleaning ALL caches (in project, in .gradle
transform and build-caches dirs).
Correct stacktrace which helps me fix problem was Property 'unique' (JVM signature: getUnique()Lio/github/serpro69/kfaker/provider/GameOfThrones;) not resolved in class te1
Adding -keepclasseswithmembers class io.github.serpro69.**{*;}
in proguard rules and removingandroid.enableR8.fullMode=true
fixed problem.
Using non unique getters not receivies exception
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Troubleshooting ProGuard issues on Android - Medium
Using ProGuard is a prerequisite for enabling the resource shrinker. The resource shrinker strips out resources that are not referenced from ...
Read more >Shrink, obfuscate, and optimize your app - Android Developers
When you build your project using Android Gradle plugin 3.4.0 or higher, the plugin no longer uses ProGuard to perform compile-time code optimization....
Read more >Can't build APK with Android Studio when using ProGuard ...
Screw it, my boss said I have to release this thing already: ... Either use the project properties dialog in Android Studio, or...
Read more >Getting Started with ProGuard - RayWenderlich.com
In this Android tutorial, you'll learn how to strip down your app size by making use of ProGuard – an app shrinking and...
Read more >Configuring ProGuard | CodePath Android Cliffnotes
ProGuard can be enabled by using the minifyEnabled option for any build type. If you intend to use it for production, it is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, I have a similar problem with obfuscation from 1.6.0, at this link I provided an example project showing the error
Thanks @andrea157 .
I don’t think it’s an issue with kotlin-faker, especially seeing that your example does not use kotlin-faker at all. I think the existing proguard rules that are embedded in kotlin-reflect.jar are broken with release 1.6.0+ But I’ll play around with this when I have time and see if I can at least add some info to the docs for a workaround. Otherwise feel free to submit a PR for the same.