Skip to content

kotlinx-coroutines-debug depends on android-gradle-aspectj but android-gradle-aspectj is abandoned #3060

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

Closed
jmarks213 opened this issue Dec 5, 2021 · 1 comment
Labels

Comments

@jmarks213
Copy link

I went to reach for kotlinx-coroutines-debug to work through an issue I am having but it throws the below error as noted in the readme. The solution per the readme is to add the android-gradle-aspectj plugin to the project. When you attempt to add android-gradle-aspectj it fails to resolve as the project did not migrate away from jcenter.

Is anyone able to host the android-gradle-aspectj plugin somewhere?

Debug agent and Android

Unfortunately, Android runtime does not support Instrument API necessary for kotlinx-coroutines-debug to function, triggering java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;.

Nevertheless, it will be possible to support debug agent on Android as soon as GradleAspectJ-Android will support android-gradle 3.3

@qwwdfsad
Copy link
Member

qwwdfsad commented Dec 6, 2021

Hi,

The solution per the readme is to add the android-gradle-aspectj plugin to the project

This is not what the documentation says. It says

Nevertheless, it will be possible to support debug agent on Android as soon as GradleAspectJ-Android will support android-gradle 3.3

Yet it is not supported and we gave up on this plan. Thanks for pointing it out, I will adjust the doc accordingly.
We are not going to support coroutine debugger on Android, it will be a built-in tool of Android Studio itself in one of the upcoming versions of AS.

@qwwdfsad qwwdfsad closed this as completed Dec 6, 2021
qwwdfsad added a commit that referenced this issue Dec 6, 2021
* Do not mention obsolete gradle-aspectj-android plugin at all
* Fix broken links

Addresses #3060
qwwdfsad added a commit that referenced this issue Dec 10, 2021
* Do not mention obsolete gradle-aspectj-android plugin at all
* Fix broken links

Addresses #3060
woainikk pushed a commit that referenced this issue Dec 14, 2021
* Do not mention obsolete gradle-aspectj-android plugin at all
* Fix broken links

Addresses #3060
yorickhenning pushed a commit to yorickhenning/kotlinx.coroutines that referenced this issue Jan 28, 2022
* Do not mention obsolete gradle-aspectj-android plugin at all
* Fix broken links

Addresses Kotlin#3060
pablobaxter pushed a commit to pablobaxter/kotlinx.coroutines that referenced this issue Sep 14, 2022
* Do not mention obsolete gradle-aspectj-android plugin at all
* Fix broken links

Addresses Kotlin#3060
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