Skip to content

Use of Experimental Api annotation causing crash in the project. #13

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

Open
vivekgupta4Git opened this issue Apr 9, 2025 · 5 comments
Open

Comments

@vivekgupta4Git
Copy link

I am trying to use this library in the project but got the crash

Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/platform/LocalSoftwareKeyboardController;
at com.yogeshpaliyal.speld.OtpViewKt.PinInput(OtpView.kt:81)
at com.health.zyephr.featureModules.abha.views.enrollment.screen.validateotpforaadhaar.components.ValidateOtpForAadhaarKt.ValidateOtpForAadhaar(ValidateOtpForAadhaar.kt:18)
at com.health.zyephr.featureModules.abha.views.enrollment.screen.validateotpforaadhaar.components.ValidateOtpForAadhaarKt.PreviewValidateOtpForAadhaar(ValidateOtpForAadhaar.kt:30)
... 68 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.compose.ui.platform.LocalSoftwareKeyboardController" on path: DexPathList[[zip file "/data/app/~~gRDIJZykEHNQWEhHDt4kPw==/com.health.zyephr-4pffddMASXmr0ocAR2ckyA==/base.apk"],nativeLibraryDirectories=[/data/app/~~gRDIJZykEHNQWEhHDt4kPw==/com.health.zyephr-4pffddMASXmr0ocAR2ckyA==/lib/arm64, /data/app/~~gRDIJZykEHNQWEhHDt4kPw==/com.health.zyephr-4pffddMASXmr0ocAR2ckyA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
... 71 more

I am using compose bom version 2024:08:00. I did a little bit research and found this discussion on ExperimentalApi annotation and seems like this is the case only in this library .

@yogeshpaliyal
Copy link
Owner

Thanks for reporting this, will fix this and release a new version ASAP.

@yogeshpaliyal
Copy link
Owner

@vivekgupta4Git If you have some ideas or proposal to fix this feel free to raise a PR.

@yogeshpaliyal
Copy link
Owner

This is fixed can you please check in v1.0.3

@vivekgupta4Git
Copy link
Author

@yogeshpaliyal I have tried using v3 in the project as I am still using kotlin 1.9.0 version, I am unable to add your library as a dependency. If i include you library, i have update my kotlin as well core-ktx library and jetpack compose ..lots of things. so couldn't try it !

@yogeshpaliyal
Copy link
Owner

Okay, cool, let me know if it works in future when you bump the kotlin and core-ktx versions

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