Comments (5)
Okay so I don't quite understand what happened here but I managed to solve the crash.
When i saw your sample project i noticed that in the external libraries folder, there were 2 additional dependencies:
This was missing in my project after i finished importing the dependency on gradle which is
implementation 'com.github.duanhong169:colorpicker:1.1.5'
after i manually added the checkerboard dependency
implementation 'com.github.duanhong169:checkerboarddrawable:1.0.2'
it worked and I was able to see the color picker
from colorpicker.
Try a full rebuild of your project?
Android Studio: Build -> Clean Project, then Run it again.
from colorpicker.
It does not help. I am still getting the crash
from colorpicker.
Yes, you are right, the library colorpicker:1.1.5
has some transitive dependencies which include checkerboarddrawable:1.0.2
, but it should be handled by gradle automatically.
I confirmed these transitive dependencies are working in the sample project:
implementation 'com.github.duanhong169:colorpicker:1.1.5'
// implementation project(':colorpicker')
anyway, if manually add the dependencies can solve your issue, that's acceptable :)
from colorpicker.
I tried using the latest version 1.1.6 in my project and when i click on a button to open the color picker it crashes and displays the following exception:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.apanishoppy, PID: 9247
java.lang.NoClassDefFoundError: Failed resolution of: Ltop/defaults/checkerboarddrawable/CheckerboardDrawable;
at top.defaults.colorpicker.AlphaSliderView.onDraw(AlphaSliderView.java:43)
at android.view.View.draw(View.java:19382)
at android.view.View.updateDisplayListIfDirty(View.java:18311)
at android.view.View.draw(View.java:19099)
at android.view.ViewGroup.drawChild(ViewGroup.java:4401)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4180)
at android.view.View.updateDisplayListIfDirty(View.java:18297)
at android.view.View.draw(View.java:19099)
at android.view.ViewGroup.drawChild(ViewGroup.java:4401)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4180)
at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1882)
at android.view.View.updateDisplayListIfDirty(View.java:18297)
at android.view.View.draw(View.java:19099)
at android.view.ViewGroup.drawChild(ViewGroup.java:4401)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4180)
at android.view.View.draw(View.java:19385)
at android.view.View.updateDisplayListIfDirty(View.java:18311)
at android.view.View.draw(View.java:19099)
at android.view.ViewGroup.drawChild(ViewGroup.java:4401)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4180)
at android.view.View.updateDisplayListIfDirty(View.java:18297)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:676)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:682)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:790)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:3091)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2884)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2437)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1446)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6954)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:980)
at android.view.Choreographer.doCallbacks(Choreographer.java:792)
at android.view.Choreographer.doFrame(Choreographer.java:724)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:966)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:192)
at android.app.ActivityThread.main(ActivityThread.java:6711)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:826)
Caused by: java.lang.ClassNotFoundException: Didn't find class "top.defaults.checkerboarddrawable.CheckerboardDrawable" on path: DexPathList[[zip file "/data/app/com.apanishoppy-qxWio9GDx8GgNE79gHEhbQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.apanishoppy-qxWio9GDx8GgNE79gHEhbQ==/lib/arm64, /data/app/com.apanishoppy-qxWio9GDx8GgNE79gHEhbQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64, /system/vendor/lib64/hw, /system/vendor/lib64]]
from colorpicker.
Related Issues (20)
- Dismiss the picker on back pressed HOT 1
- Allow to use custom layout for ColorPickerPopup / ColorPickerView HOT 1
- OOM allocating Bitmap with dimensions 16776943 x 63
- OK/Cancel text disappears in Night mode HOT 1
- How do I get the hexadecimal equivalent of the color in onColorPicked? HOT 3
- Migration to AndroidX HOT 1
- Use DialogFragment instead of Popupwindow would be better.
- May I know what is the idea behind ThrottledTouchEventHandler?
- Custom shape selector
- Add ability to change color of black arrow on color slider view HOT 4
- method does not override or implement a method from a supertype HOT 1
- Suggest changing the arrow indicator to a black dot.
- i want to use onColor method but it is final
- 能将圆形选择盘设置为方形选择盘吗?
- 我导入了依赖但是不能用
- Failed to resolve: com.github.duanhong169:colorpicker:1.1.6 HOT 1
- Color code is not visible completely on Mobile
- Cursor release trigger HOT 2
- Popup Buttons HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colorpicker.