android.view.InflateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • See the attached app, which can be built with {{crosswalk-pkg -p android -a shared -c /path/to/xwalk_app_template /path/to/app}}. Clicking the color picker causes the app to crash with a backtrace like this: {code} W/System.err(13055): android.view.InflateException: Binary XML file line #18: Error inflating class org.chromium.ui.ColorPickerAdvanced W/System.err(13055): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698) W/System.err(13055): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) W/System.err(13055): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749) W/System.err(13055): at android.view.LayoutInflater.inflate(LayoutInflater.java:489) W/System.err(13055): at android.view.LayoutInflater.inflate(LayoutInflater.java:396) W/System.err(13055): at android.view.LayoutInflater.inflate(LayoutInflater.java:352) W/System.err(13055): at org.chromium.ui.ColorPickerDialog.<init>(ColorPickerDialog.java:97) W/System.err(13055): at org.chromium.components.web_contents_delegate_android.ColorChooserAndroid.<init>(ColorChooserAndroid.java:37) W/System.err(13055): at org.chromium.components.web_contents_delegate_android.ColorChooserAndroid.createColorChooserAndroid(ColorChooserAndroid.java:58) W/System.err(13055): at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) W/System.err(13055): at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:39) W/System.err(13055): at android.os.Handler.dispatchMessage(Handler.java:108) W/System.err(13055): at android.os.Looper.loop(Looper.java:152) W/System.err(13055): at android.app.ActivityThread.main(ActivityThread.java:5691) W/System.err(13055): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err(13055): at java.lang.reflect.Method.invoke(Method.java:511) W/System.err(13055): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) W/System.err(13055): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) W/System.err(13055): at dalvik.system.NativeStart.main(Native Method) W/System.err(13055): Caused by: java.lang.ClassNotFoundException: Didn't find class "org.chromium.ui.ColorPickerAdvanced" on path: /data/app/org.xwalk.color_picker_crash-1.apk W/System.err(13055): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65) D/dalvikvm(13055): Rejecting registerization due to +iget-object-quick v7, v9, (#8) W/System.err(13055): at java.lang.ClassLoader.loadClass(ClassLoader.java:501) W/System.err(13055): at java.lang.ClassLoader.loadClass(ClassLoader.java:461) W/System.err(13055): at android.view.LayoutInflater.createView(LayoutInflater.java:552) W/System.err(13055): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687) W/System.err(13055): ... 18 more {code} I've verified this to crash on our latest stable release (Crosswalk 21), and it's possible it's always been broken in shared mode.
    via by Raphael Kubo da Costa,
  • QCAR_ missing? I just Imported
    via GitHub by alenko
    ,
  • Selendroid socket error
    via GitHub by bootstraponline
    ,
  • App did not start (RuntimeError)
    via GitHub by Vinish123
    ,
  • Can never instantiate class?
    via GitHub by jjwilliams
    ,
    • android.view.InflateException: Binary XML file line #18: Error inflating class org.chromium.ui.ColorPickerAdvanced at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698) at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at android.view.LayoutInflater.rInflate(LayoutInflater.java:749) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at android.view.LayoutInflater.inflate(LayoutInflater.java:352) at org.chromium.ui.ColorPickerDialog.<init>(ColorPickerDialog.java:97) at org.chromium.components.web_contents_delegate_android.ColorChooserAndroid.<init>(ColorChooserAndroid.java:37) at org.chromium.components.web_contents_delegate_android.ColorChooserAndroid.createColorChooserAndroid(ColorChooserAndroid.java:58) at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:39) at android.os.Handler.dispatchMessage(Handler.java:108) at android.os.Looper.loop(Looper.java:152) at android.app.ActivityThread.main(ActivityThread.java:5691) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.chromium.ui.ColorPickerAdvanced" on path: /data/app/org.xwalk.color_picker_crash-1.apk at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    filipebatistafilipebatista
    4 times, last one,
    155 more bugmates