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.

Proguard on Android issues

See original GitHub issue

Hi, i’m using ktor for simple rest server on Android app. Everything works fine, but if i run proguard, then hell is unleashed and i have over 680 issues with progurad. 100% problems is resolved by:

-dontwarn io.netty.**
-dontwarn io.ktor.**
-dontwarn com.typesafe.**

But server is not responding after start so i’m assuming, that proguard rules should be different 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kairos34commented, Feb 14, 2022

Hello, Could you share latest proguard rules for Android please?

3reactions
mikezliucommented, Jan 12, 2019

This worked for me. Running release apk works too.

# Ktor
-keep class io.ktor.** { *; }
-keep class kotlinx.coroutines.** { *; }
-dontwarn kotlinx.atomicfu.**
-dontwarn io.netty.**
-dontwarn com.typesafe.**
-dontwarn org.slf4j.**
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting ProGuard issues on Android - Medium
In some cases ProGuard can't know that a class or method is being used, such as when it's only referenced by reflection, from...
Read more >
ProGuard Manual: Troubleshooting - Guardsquare
If the missing class is an Android run-time class, you should make sure that you are building against an Android run-time that is...
Read more >
Pro-guard Obfuscation not working in android studio
1) Go to the build.gradle file of app · 2) enable the proguard minifyEnabled true and useProguard true · 3) enable shrinkResources true...
Read more >
Debugging Proguard configuration issues
To debug Proguard/R8 configuration one can assemble release build and navigate to app\build\outputs\mapping\release . There you'll see the ...
Read more >
ProGuard Troubleshooting
ProGuard continues copying the resource files as usual, skipping any files with previously used names. Once more, the warning may be an indication...
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