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

Duplicate class androidx.lifecycle.ViewModelLazy // Duplicate class androidx.lifecycle.ViewTreeViewModelKt #25

Open
siavash-kadkhodai opened this issue Oct 1, 2023 · 1 comment
Assignees

Comments

@siavash-kadkhodai
Copy link

شرح مشکل
زمانی که کتابخانه ورژن implementation 'com.zarinpal:payment-provider:0.6.3' اد میشود موقعی که برای تست میخواهیم اپلیکیشن ران بگیریم
ارور های زیر را میدهد

Duplicate class androidx.lifecycle.ViewModelLazy found in modules jetified-lifecycle-viewmodel-ktx-2.3.0-runtime(androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0) and lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1)
Duplicate class androidx.lifecycle.ViewTreeViewModelKt found in modules jetified-lifecycle-viewmodel-ktx-2.3.0-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0) and lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1)

SDK اپلیکیشن ما
compileSdk 34
minSdk 21
targetSdk 34

این مشکل برای بقیه کاربران هم در نسخه 0.6.2 وجود داشته است!!!
خواهشا راه حلی برای آن ارائه دهید متشکرم

@armanhossiny
Copy link

وارد gadle ريشه پروژه شو و دپندنسی‌ زیر رو به اخرین نسخه اپدیت کن

‍‍`‍ ‍‍‍ dependencies {

    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.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

3 participants