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

NoClassDefFoundError both 1.5.4v &2.1.1v #34

Closed
windyer39 opened this issue Oct 15, 2020 · 2 comments
Closed

NoClassDefFoundError both 1.5.4v &2.1.1v #34

windyer39 opened this issue Oct 15, 2020 · 2 comments

Comments

@windyer39
Copy link

windyer39 commented Oct 15, 2020

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/constraintlayout/widget/ConstraintLayout;
at com.github.nukc.stateview.StateView.addToParent(StateView.kt:279)
at com.github.nukc.stateview.StateView.inflate(StateView.kt:251)
at com.github.nukc.stateview.StateView.showView(StateView.kt:147)
at com.github.nukc.stateview.StateView.showLoading(StateView.kt:127)

Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.constraintlayout.widget.ConstraintLayout$LayoutParams" on path: DexPathList[[zip file "/data/app/com.xxxx-ozFpwn3RnL8tk4kfS5iEMg==/base.apk"],nativeLibraryDirectories=[/data/app/com.xxxx-ozFpwn3RnL8tk4kfS5iEMg==/lib/arm64, /system/lib64, /hw_product/lib64, /system/product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:209)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)

@nukc
Copy link
Owner

nukc commented Oct 16, 2020

implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
缺少依赖 constraintlayout,最新 2.0 版本也已出

@nukc
Copy link
Owner

nukc commented Nov 25, 2020

@windyer39 2.2.0 版本可以不依赖 constraintlayout

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