question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 8 years ago
  • Comments:11

github_iconTop GitHub Comments

6reactions
Reza-Rgcommented, Jan 14, 2016

If you are using with minifyEnabled true, then you have to add proguard rule as below: -keep class android.support.v8.renderscript.** { *; }

2reactions
JackyAndroidcommented, Mar 17, 2016

@niyingxunzong if you project is module, try " renderscriptTargetApi 21 renderscriptSupportModeEnabled true" in your app gradle

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found