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

Cannot access 'androidx.lifecycle.ViewModel' which is a supertype of 'com.example.account.AccountViewModel' #38

Closed
vivart opened this issue Jun 26, 2023 · 3 comments

Comments

@vivart
Copy link

vivart commented Jun 26, 2023

First of all thanks for all the awesome libs.
I have added this dependency in my shared folder.
api("com.rickclephas.kmm:kmm-viewmodel-core:1.0.0-ALPHA-9") and created this class
class AccountViewModel : KMMViewModel() {}
and I am getting this error

Cannot access 'androidx.lifecycle.ViewModel' which is a supertype of 'com.example.account.AccountViewModel'. Check your module classpath for missing or conflicting dependencies

Am I missing some dependency or some configuration?

@rickclephas
Copy link
Owner

Hi sorry about that the current version has a small dependency issue (which will be fixed in the next release).
For the temporary workaround please see #34 (comment).

@vivart
Copy link
Author

vivart commented Jun 27, 2023

thanks working fine with workaround.

@rickclephas
Copy link
Owner

FYI this has been fixed in v1.0.0-ALPHA-10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants