Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy am I getting "can't find view" exceptions when the layout hasn't changed?
    text
    copied!<p>I'm working on one of my android widgets, which uses LauncherPlus to add scrolling functionality, and am running into a frustrating issue. My currently published version of the code, again using LauncherPlus, is working well, scrolling and all. I'm adding a requested feature, one which allows changing text sizes, but an exception is thrown when I test the update. There exception is:</p> <pre><code>mobi.intuitit.android.widget.SimpleRemoteViews$ActionException: can't find view:0x7f070041 </code></pre> <p>I haven't changed anything in the layouts and the only code change references a view id which was already referenced in that same section of code. I looked through the R.java and found which resource was referred to and again, nothing has changed there. Here's the bit of code where the issue is coming from:</p> <pre><code>itemViews.setBoundBitmap(R.id.profile, "setImageBitmap", SonetProvider.SonetProviderColumns.profile.ordinal(), 0); itemViews.setBoundCharSequence(R.id.friend, "setText", SonetProvider.SonetProviderColumns.friend.ordinal(), 0); itemViews.setBoundCharSequence(R.id.created, "setText", SonetProvider.SonetProviderColumns.createdtext.ordinal(), 0); itemViews.setBoundCharSequence(R.id.message, "setText", SonetProvider.SonetProviderColumns.message.ordinal(), 0); </code></pre> <p>The exception is thrown when applying the first line. Out of curiosity, I changed the order of these lines, and each one of them will cause the exception, though again, the layout hasn't changed. After the exception is thrown the widget will build successfully, but I can't publish this update with an exception (force close) being thrown. Any ideas why there is a resource issue? Thanks!</p> <p>UPDATE: I found this discussion where it seems that widget resources may not be reloaded on application updates: <a href="http://groups.google.com/group/android-developers/browse_thread/thread/55a8e44974e8c6ad?fwc=1&amp;pli=1" rel="nofollow">http://groups.google.com/group/android-developers/browse_thread/thread/55a8e44974e8c6ad?fwc=1&amp;pli=1</a> Does anyone have any experience with this, or a workaround? This may be what I'm facing.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload