question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reflect issue in minified android apk. Add proguard section in README?

See original GitHub issue

Nice 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:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
andrea157commented, Dec 22, 2021

Hi, I have a similar problem with obfuscation from 1.6.0, at this link I provided an example project showing the error

0reactions
serpro69commented, Dec 28, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found