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

error: cannot access Stable #727

Closed
Olesya-Egorova opened this issue Oct 9, 2024 · 8 comments
Closed

error: cannot access Stable #727

Olesya-Egorova opened this issue Oct 9, 2024 · 8 comments
Labels
Release Next This feature will be released on next version

Comments

@Olesya-Egorova
Copy link

Please complete the following information:

  • Library Version v1.6.8

Describe the Bug:

We use com.github.skydoves:balloon library. A compilation error occurs:

error: cannot access Stable
  class file for androidx.compose.runtime.Stable not found

I guess it happens because of the library's build.gradle file contains compileOnly() configuration that contains com.github.skydoves:compose-stable-marker dependency. If we add compileOnly("com.github.skydoves:compose-stable-marker:1.0.5") in our project's build.gradle file then the app build will be successful.

Expected Behavior:

The app build is successful or README contains information about compile-only dependencies that are needed.

@skydoves
Copy link
Owner

Hey @Olesya-Egorova, sorry for the late response. Does your project doesn't have any dependencies on Jetpack Compose?

@Olesya-Egorova
Copy link
Author

Hey @Olesya-Egorova, sorry for the late response. Does your project doesn't have any dependencies on Jetpack Compose?

Hi! Yes, we don't use Jetpack Compose in our project

@skydoves
Copy link
Owner

This is very weird. My project that doesn't have any dependency on Jetpack Compose still works well with the version of balloon 1.6.9.

@skydoves
Copy link
Owner

I tested it with my demo project and the result is like the below:

Screenshot 2024-10-22 at 12 31 28 PM

@Olesya-Egorova
Copy link
Author

I tested it with my demo project and the result is like the below:

Screenshot 2024-10-22 at 12 31 28 PM

Thaks for your example. I've created demo project too. It duplicates some Gradle settings and dependencies from real project. The demo project uses Balloon.Factory() and when we use kapt() configuration (lib/build.gradle.kts) then error will be occurred

@skydoves
Copy link
Owner

Hey @Olesya-Egorova, thank you so much for creating the demo project. I just checked it and will resolved it on the next release. In the mean time, you can see it works well if you add the dependency below on the lib module:

compileOnly("com.github.skydoves:compose-stable-marker:1.0.5")

@skydoves skydoves added the Release Next This feature will be released on next version label Nov 2, 2024
@skydoves
Copy link
Owner

skydoves commented Nov 2, 2024

Hey @Olesya-Egorova, this issue has been fixed on 1.6.10. Thank you so much for your report!

@skydoves skydoves closed this as completed Nov 2, 2024
@Olesya-Egorova
Copy link
Author

Hey @Olesya-Egorova, this issue has been fixed on 1.6.10. Thank you so much for your report!

Thank you for quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release Next This feature will be released on next version
Projects
None yet
Development

No branches or pull requests

2 participants