qhutch / ElevationImageView

Imageview with elevation shadow
396 stars 46 forks source link

Proguard issue #19

Open raghavsatyadev opened 5 years ago

raghavsatyadev commented 5 years ago

Add a section for proguard in ReadMe file. The application was crashing continuously because it wasn't there.

Here's the proguard required for this library.

#RenderScript
-keepclasseswithmembernames class * {
native <methods>;
}
-keep class androidx.renderscript.** { *; }
rahulmarkk commented 4 years ago

logs:

Fatal Exception: androidx.renderscript.RSRuntimeException Error loading RS jni library: java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/com.markk.app.staging-lwevMAIplAQZVESUxJibfw==/split_config.arm64_v8a.apk!/lib/arm64-v8a/librsjni_androidx.so" Support lib API: 2301

androidx.renderscript.RenderScript.internalCreate (RenderScript.java:1414) androidx.renderscript.RenderScript.create (RenderScript.java:1599) androidx.renderscript.RenderScript.create (RenderScript.java:1549) androidx.renderscript.RenderScript.create (RenderScript.java:1525) androidx.renderscript.RenderScript.create (RenderScript.java:1512) com.qhutch.elevationimageview.ElevationImageView.onAttachedToWindow (ElevationImageView.java:136) android.view.View.dispatchAttachedToWindow (View.java:17445) android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3333) android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3333) android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3333) android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3333) android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3333) android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3333) android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1668) android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1392) android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6752) android.view.Choreographer$CallbackRecord.run (Choreographer.java:911) android.view.Choreographer.doCallbacks (Choreographer.java:723) android.view.Choreographer.doFrame (Choreographer.java:658) android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897) android.os.Handler.handleCallback (Handler.java:790) android.os.Handler.dispatchMessage (Handler.java:99) android.os.Looper.loop (Looper.java:164) android.app.ActivityThread.main (ActivityThread.java:6494) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807)