Attribute Reference Too Many Warning

I have an application in which some fragments consist only of ListViews. Some of my users with junior devices experience a phenomenon where a fragment simply cannot display data. When they enter the fragment, I show the ProgressBar, and this ProgressBar seems to spin forever.

So, I bought an inexpensive device and ran into the same problem. I get data for a ListView with a network request to my backend API, but the response never returns. The only warning I see so far is

W/ResourceType﹕ Too many attribute references, stopped at: 0x01010034

I could not find much about this error on the Internet, but it seems that this warning is being written here https://github.com/SciAps/android-frameworks-base/blob/c693209edc3696884c1fcd59790dda0b9811d017/libs/utils/ResourceTypes.cpp#L1573 , I don’t know. I don’t understand what Android code is doing.

Does anyone know what is going on here, what the problem is, and how can I fix it?

BTW I use RoboSpice and Retrofit to make network requests. The background service, which is responsible for receiving the data, stops after this warning, so I never return the data.

EDIT As far as I can tell, not seeing that the data has nothing to do with the warning. In any case, what does this warning mean and how can I prevent it?

+4
2

, . XML, style="@style/MyStyle" android:theme="@style/MyStyle", .

+4

ContextThemeWrapper ElementViews

TextView txtView= new TextView(new ContextThemeWrapper(context, R.style.styleName));
+1

Source: https://habr.com/ru/post/1544897/


All Articles