Caused by: java.lang.NoClassDefFoundError: android.support.v8.renderscript.RenderScript
See original GitHub issue Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.fivehundredpx.android.blur.BlurringView
at android.view.LayoutInflater.createView(LayoutInflater.java:623)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:699)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
at android.view.LayoutInflater.inflate(LayoutInflater.java:400)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.view.View.inflate(View.java:17504)
at com.fivetv.elementary.view.pager.ProvideCluePager.initView(ProvideCluePager.java:26)
at com.fivetv.elementary.view.pager.BasePager.<init>(BasePager.java:31)
at com.fivetv.elementary.view.pager.ProvideCluePager.<init>(ProvideCluePager.java:21)
at com.fivetv.elementary.activity.MediaPlayerActivity.initView(MediaPlayerActivity.java:134)
at com.fivetv.elementary.activity.MediaPlayerActivity.onCreate(MediaPlayerActivity.java:67)
at android.app.Activity.performCreate(Activity.java:5249)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2165)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
at android.app.ActivityThread.access$800(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5065)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:597)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:699)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
at android.view.LayoutInflater.inflate(LayoutInflater.java:400)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.view.View.inflate(View.java:17504)
at com.fivetv.elementary.view.pager.ProvideCluePager.initView(ProvideCluePager.java:26)
at com.fivetv.elementary.view.pager.BasePager.<init>(BasePager.java:31)
at com.fivetv.elementary.view.pager.ProvideCluePager.<init>(ProvideCluePager.java:21)
at com.fivetv.elementary.activity.MediaPlayerActivity.initView(MediaPlayerActivity.java:134)
at com.fivetv.elementary.activity.MediaPlayerActivity.onCreate(MediaPlayerActivity.java:67)
at android.app.Activity.performCreate(Activity.java:5249)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2165)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
at android.app.ActivityThread.access$800(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5065)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: android.support.v8.renderscript.RenderScript
at com.fivehundredpx.android.blur.BlurringView.initializeRenderScript(BlurringView.java:98)
at com.fivehundredpx.android.blur.BlurringView.<init>(BlurringView.java:37)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:597)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:699)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
at android.view.LayoutInflater.inflate(LayoutInflater.java:400)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.view.View.inflate(View.java:17504)
at com.fivetv.elementary.view.pager.ProvideCluePager.initView(ProvideCluePager.java:26)
at com.fivetv.elementary.view.pager.BasePager.<init>(BasePager.java:31)
at com.fivetv.elementary.view.pager.ProvideCluePager.<init>(ProvideCluePager.java:21)
at com.fivetv.elementary.activity.MediaPlayerActivity.initView(MediaPlayerActivity.java:134)
at com.fivetv.elementary.activity.MediaPlayerActivity.onCreate(MediaPlayerActivity.java:67)
at android.app.Activity.performCreate(Activity.java:5249)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2165)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
at android.app.ActivityThread.access$800(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5065)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
at dalvik.system.NativeStart.main(Native Method)
I have already add the “renderscriptTargetApi 20” “renderscriptSupportModeEnabled true” in my gradle file . but i still got that error ,why?
Issue Analytics
- State:
- Created 8 years ago
- Comments:11
Top Results From Across the Web
android - Renderscript broken with AndroidX? - Stack Overflow
It seems that changing from the support libraries (android.support.v8.renderscript) to the regular renderscript libraries (android.renderscript.
Read more >RenderScript | Android Developers
Causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object, or some other...
Read more >v8/renderscript/java/src/android/support/v8 ... - Google Git
package android.support.v8.renderscript; ... import java.lang.reflect. ... This class provides access to a RenderScript context, which controls RenderScript.
Read more >ClassNotFoundException - Android SDK
Constructs a new ClassNotFoundException with the current stack trace, the specified detail message and the exception that occurred when loading the class.
Read more >Java lang noclassdeffounderror 解析失败:landroid app ...
java.lang.NoClassDefFoundError: Failed resolution of: Landroid , java.lang.ClassNotFoundException: 在路径上找不到类“android.support.v8.renderscript .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you are using with
minifyEnabled true
, then you have to add proguard rule as below:-keep class android.support.v8.renderscript.** { *; }
@niyingxunzong if you project is module, try " renderscriptTargetApi 21 renderscriptSupportModeEnabled true" in your app gradle