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

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

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.

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

  • intent service causes the App to crash
    via Stack Overflow by user2121
    ,
  • Obfuscated code
    via GitHub by lujianzhao
    ,
  • Custom interface not working on Activity
    via Stack Overflow by Sariyanti
    ,
    • 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)

    Users with the same issue

    Unknown User
    Unknown User178 times, last one,
    filpgame
    filpgame8 times, last one,
    brunosatriani
    brunosatriani40 times, last one,
    Diogo Jaym
    Diogo Jaym2 times, last one,
    asvid
    asvid40 times, last one,
    39 more bugmates