java.lang.InstantiationException: java.lang.Class<com.davemorrissey.labs.subscaleview.decoder.SkiaImageRegionDecoder> has no zero argument constructor


Samebug tips1

This happens when you try to instantiate a class that can't be instantiated, either because the class object is abstract, an interface, an array class, a primitive type, void, or because the class has no nullary constructor.


7 months ago
Expert tip

Solutions on the web35

Solution icon of github
java.lang.Class<com.davemorrissey.labs.subscaleview.decoder.SkiaImageRegionDecoder> has no zero argument constructor

Solution icon of github
via GitHub by KingWu
, 1 year ago
class com.votee.core.util.zoom.PicassoRegionDecoder has no zero argument constructor

Solution icon of github
java.lang.Class<LineUpData> has no zero argument constructor

Solution icon of stackoverflow
via Stack Overflow by Sariyanti
, 8 months ago
java.lang.Class has no zero argument constructor

Solution icon of stackoverflow
java.lang.Class has no zero argument constructor

Solution icon of stackoverflow
java.lang.Class<com.example.parthibank.needleandroidproj.MainActivity> has no zero argument constructor

Solution icon of github
via GitHub by lujianzhao
, 9 months ago
java.lang.Class<com..db.c.a> has no zero argument constructor

Solution icon of stackoverflow
java.lang.Class<com.ignite.a01hw909350.kolamdemo.MenuActivity$MyStartServiceReceiver> has no zero argument constructor

Solution icon of stackoverflow
via Stack Overflow by user2121
, 1 year ago
java.lang.Class<com.example.com.intentservice_00.MyIntentService> has no zero argument constructor

Solution icon of github
class a.a.b has no zero argument constructor

Stack trace

java.lang.InstantiationException: java.lang.Class<com.davemorrissey.labs.subscaleview.decoder.SkiaImageRegionDecoder> has no zero argument constructor
	at java.lang.Class.newInstance(Native Method)
	at com.davemorrissey.labs.subscaleview.decoder.CompatDecoderFactory.make(CompatDecoderFactory.java:18)
	at com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView$TilesInitTask.doInBackground(SubsamplingScaleImageView.java:1414)
	at com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView$TilesInitTask.doInBackground(SubsamplingScaleImageView.java:1391)
	at android.os.AsyncTask$2.call(AsyncTask.java:295)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
	at java.lang.Thread.run(Thread.java:818)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

178 times, 4 months ago
8 times, 7 months ago
70 times, 1 year ago
2 times, 1 year ago
40 times, 1 year ago
39 more bugmates