android.widget.RemoteViews$ActionException: view: android.support.v7.widget.AppCompatImageView can't use method with RemoteViews: setImageResource(int)

Stack Overflow | Imma Wake | 2 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    AppCompat Breaks Launcher Widget ability. "couldn't find any view, using error view"

    Stack Overflow | 2 months ago | Imma Wake
    android.widget.RemoteViews$ActionException: view: android.support.v7.widget.AppCompatImageView can't use method with RemoteViews: setImageResource(int)
  2. 0

    Appwidget with remoteView Out of memory

    Stack Overflow | 2 years ago | Ji Young Min
    android.widget.RemoteViews$ActionException: java.lang.reflect.InvocationTargetException
  3. 0

    Appwidget remoteView Out of memory

    Stack Overflow | 2 years ago | Ji Young Min
    android.widget.RemoteViews$ActionException: java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. android.widget.RemoteViews$ActionException

      view: android.support.v7.widget.AppCompatImageView can't use method with RemoteViews: setImageResource(int)

      at android.widget.RemoteViews.getMethod()
    2. Android Platform
      AppWidgetHost.createView
      1. android.widget.RemoteViews.getMethod(RemoteViews.java:775)
      2. android.widget.RemoteViews.access$300(RemoteViews.java:69)
      3. android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:1266)
      4. android.widget.RemoteViews.performApply(RemoteViews.java:2587)
      5. android.widget.RemoteViews.apply(RemoteViews.java:2547)
      6. android.appwidget.AppWidgetHostView.updateAppWidget(AppWidgetHostView.java:395)
      7. android.appwidget.AppWidgetHost.createView(AppWidgetHost.java:336)
      7 frames
    3. com.lgfischer.widgethost
      WidgetHostExampleActivity.onActivityResult
      1. com.lgfischer.widgethost.WidgetHostExampleActivity.createWidget(WidgetHostExampleActivity.java:129)
      2. com.lgfischer.widgethost.WidgetHostExampleActivity.onActivityResult(WidgetHostExampleActivity.java:93)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.dispatchActivityResult(Activity.java:6168)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:3732)
      3. android.app.ActivityThread.handleSendResult(ActivityThread.java:3779)
      4. android.app.ActivityThread.access$1300(ActivityThread.java:162)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1461)
      6. android.os.Handler.dispatchMessage(Handler.java:106)
      7. android.os.Looper.loop(Looper.java:189)
      8. android.app.ActivityThread.main(ActivityThread.java:5529)
      8 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
      2 frames