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

Missing class: java.lang.instrument.ClassFileTransformer #2266

Closed
Anigif opened this issue Sep 23, 2020 · 1 comment
Closed

Missing class: java.lang.instrument.ClassFileTransformer #2266

Anigif opened this issue Sep 23, 2020 · 1 comment
Labels

Comments

@Anigif
Copy link

Anigif commented Sep 23, 2020

When building our Android app in release mode with gradle (and thereby also R8), the task minifyReleaseWithR8 gives the following warning: Missing class: java.lang.instrument.ClassFileTransformer

Removing the following line from the dependency list the warning dissapers, so I assume it's related to that module: implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9"

Here's stats I hope help identifying the issue:

  • targetSdkVersion: 30
  • minSdkVersion: 23
  • com.android.tools.build:gradle: 4.0.1
  • Kotlin version: 1.4.10

I'm not sure if this is related to #2046 since the same class is mentioned. That issue is however for ProGuard and mentions other issues too.

dkhalanskyjb added a commit that referenced this issue Sep 29, 2020
@qwwdfsad
Copy link
Collaborator

qwwdfsad commented Sep 30, 2020

We'll add a rule to ignore this warning in 1.4 release

recheej pushed a commit to recheej/kotlinx.coroutines that referenced this issue Dec 28, 2020
recheej pushed a commit to recheej/kotlinx.coroutines that referenced this issue Dec 28, 2020
derat added a commit to derat/nup-android that referenced this issue Feb 23, 2021
This seems changes Proguard junk to get rid of some warnings
while building:

  R8: Missing class: java.lang.instrument.ClassFileTransformer
  R8: Missing class: sun.misc.SignalHandler

Kotlin/kotlinx.coroutines#2266

(It may only fix ClassFileTransformer; not sure. I don't
seem to see these every time.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants