Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.89k stars 2.16k forks source link

java.lang.NoClassDefFoundError #421

Open saeedmozaffari opened 6 years ago

saeedmozaffari commented 6 years ago

my users encountered more than 2000 times with the following error.


Fatal Exception: java.lang.NoClassDefFoundErrorandroid.renderscript.ScriptIntrinsicConvolve3x3 Raw Text
--
  | com.yalantis.ucrop.view.TransformImageView.createScript (TransformImageView.java:524)
  | com.yalantis.ucrop.view.TransformImageView.access$300 (TransformImageView.java:39)
  | com.yalantis.ucrop.view.TransformImageView$1.onBitmapLoaded (TransformImageView.java:180)
  | com.yalantis.ucrop.task.BitmapLoadTask.onPostExecute (BitmapLoadTask.java:274)
  | com.yalantis.ucrop.task.BitmapLoadTask.onPostExecute (BitmapLoadTask.java:44)
  | android.os.AsyncTask.finish (AsyncTask.java:631)
  | dalvik.system.NativeStart.main (NativeStart.java)

please check it!

Version : com.github.yalantis:ucrop:2.2.2

Legementarion commented 6 years ago

@saeedmozaffari Hello! NoClassDefFoundError caused when there is a class file that your code depends on and it is present at compile time but not found at runtime. Look for differences in your build time and runtime classpaths.

how do you connect ucrop library?

DHosseiny commented 6 years ago

ScriptIntrinsicConvolve3x3 added in api level 17. but mentioned in Readme min api level is 14!