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.

ImageButton: You must not call setTag() on a view Glide is targeting

See original GitHub issue

I noticed some images are not loaded when im using gliex.forms with my forms project. After enabling debug log following exception is there:

Unexpected exception in glidex: Java.Lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting 11-25 18:35:38.650 W/glidex (13060): at Java.Interop.JniEnvironment+InstanceMethods.CallObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00069] in <0ad2222fd7074badb5de547b1521aab0>:0 11-25 18:35:38.650 W/glidex (13060): at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0002a] in <0ad2222fd7074badb5de547b1521aab0>:0 11-25 18:35:38.650 W/glidex (13060): at Android.Glide.RequestBuilder.Into (Android.Widget.ImageView view) [0x00031] in <11ae0431714345688234bc37c9dafe24>:0 11-25 18:35:38.650 W/glidex (13060): at Android.Glide.GlideExtensions+<LoadViaGlide>d__0.MoveNext () [0x00303] in <427dfe7fb53c4ee294c990744f70970c>:0 11-25 18:35:38.650 W/glidex (13060): — End of managed Java.Lang.IllegalArgumentException stack trace — 11-25 18:35:38.650 W/glidex (13060): java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting 11-25 18:35:38.650 W/glidex (13060): at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:265) 11-25 18:35:38.650 W/glidex (13060): at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:603) 11-25 18:35:38.650 W/glidex (13060): at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:682) 11-25 18:35:38.650 W/glidex (13060): at md51558244f76c53b6aeda52c8a337f2c37.ListViewAdapter.n_getView(Native Method) 11-25 18:35:38.650 W/glidex (13060): at md51558244f76c53b6aeda52c8a337f2c37.ListViewAdapter.getView(ListViewAdapter.java:100) 11-25 18:35:38.650 W/glidex (13060): at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:232) 11-25 18:35:38.650 W/glidex (13060): at android.widget.AbsListView.obtainView(AbsListView.java:3189) 11-25 18:35:38.650 W/glidex (13060): at android.widget.ListView.makeAndAddView(ListView.java:2197) 11-25 18:35:38.650 W/glidex (13060): at android.widget.ListView.fillDown(ListView.java:824) 11-25 18:35:38.650 W/glidex (13060): at android.widget.ListView.fillFromTop(ListView.java:885) 11-25 18:35:38.650 W/glidex (13060): at android.widget.ListView.layoutChildren(ListView.java:1952) 11-25 18:35:38.650 W/glidex (13060): at android.widget.AbsListView.onLayout(AbsListView.java:2961) 11-25 18:35:38.650 W/glidex (13060): at android.view.View.layout(View.java:20836) 11-25 18:35:38.650 W/glidex (13060): at android.view.ViewGroup.layout(ViewGroup.java:6401) 11-25 18:35:38.650 W/glidex (13060): at android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:611) 11-25 18:35:38.650 W/glidex (13060): at android.view.View.layout(View.java:20836) 11-25 18:35:38.650 W/glidex (13060): at android.view.ViewGroup.layout(ViewGroup.java:6401) 11-25 18:35:38.650 W/glidex (13060): at md51558244f76c53b6aeda52c8a337f2c37.ListViewRenderer.n_onLayout(Native Method) 11-25 18:35:38.650 W/glidex (13060): at md51558244f76c53b6aeda52c8a337f2c37.ListViewRenderer.onLayout(ListViewRenderer.java:65) 11-25 18:35:38.650 W/glidex (13060): at android.view.View.layout(View.java:20836) 11-25 18:35:38.650 W/glidex (13060): at android.view.ViewGroup.layout(ViewGroup.java:6401) 11-25 18:35:38.650 W/glidex (13060): at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) 11-25 18:35:38.650 W/glidex (13060): at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method) 11-25 18:35:38.650 W/glidex (13060): at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81) 11-25 18:35:38.650 W/glidex (13060): at android.view.View.layout(View.java:20836) 11-25 18:35:38.650 W/glidex (13060): at android.view.ViewGroup.layout(ViewGroup.java:6401) 11-25 18:35:38.650 W/glidex (13060): at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) 11-25 18:35:38.650 W/glidex (13060): at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method) 11-25 18:35:38.650 W/glidex (13060): at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81) 11-25 18:35:38.650 W/glidex (13060): at android.view.View.layout(View.java:20836) 11-25 18:35:38.650 W/glidex (13060): at android.view.ViewGroup.layout(ViewGroup.java:6401) 11-25 18:35:38.650 W/glidex (13060): at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) 11-25 18:35:38.650 W/glidex (13060): at md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.n_onLayout(Native Method) 11-25 18:35:38.650 W/glidex (13060): at md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.onLayout(NavigationPageRenderer.java:65) 11-25 18:35:38.650 W/glidex (13060): at android.view.View.layout(View.java:20836) 11-25 18:35:38.650 W/glidex (13060): at android.view.ViewGroup.layout(ViewGroup.java:6401) 11-25 18:35:38.650 W/glidex (13060): at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) 11-25 18:35:38.650 W/glidex (13060): at md58432a647068b097f9637064b8985a5e0.MasterDetailContainer.n_onLayout(Native Method) 11-25 18:35:38.650 W/glidex (13060): at md58432a647068b097f9637064b8985a5e0.MasterDetailContainer.onLayout(MasterDetailContainer.java:53) 11-25 18:35:38.650 W/glidex (13060): at android.view.View.layout(View.java:20836) 11-25 18:35:38.650 W/glidex (13060): at android.view.ViewGroup.layout(ViewGroup.java:6401) 11-25 18:35:38.650 W/glidex (13060): at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1172)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

0reactions
jonathanpepperscommented, Dec 18, 2018

Ok, yeah I can repro with the BackgroundColor. I will merge #24 when it’s green.

@toomasz would it be possible for you to contribute some layouts in the glidex.forms.samples project? You can makeup whatever you like. I generally go through all of those before I submit an update to NuGet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "You must not call setTag() on a view Glide is ...
The key is ViewTarget.setTagId ; setting it will free up the default setTag on the ImageView so you can use it as root...
Read more >
Error "You must not call setTag() on a view Glide is ... - YouTube
Android : Error " You must not call setTag () on a view Glide is targeting " when use Glide [ Beautify Your...
Read more >
Android – Error “You must not call setTag() on a view Glide ...
I use Glide library inner custom adapter view in my apps. But I have Error : "You must not call setTag() on a...
Read more >
ImageButton | Android Developers
Quickly bring your app to life with less code, using a modern declarative approach to UI, and the simplicity of Kotlin. ... Start...
Read more >
android.widget.ImageButton.getTag java code examples
Animates the visibility of a tab's close button. * * @param viewHolder * The view holder, which holds a reference to the close...
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