I have a problem reported in the market - a huge crash in the application, telling me that:
java.lang.RuntimeException: Cannot start Activity ComponentInfo {com .... android / com .... android.activities ....}: java.lang.IllegalArgumentException: invalid state class expecting view state but instead got the class android.widget.ProgressBar $ SavedState. This usually happens when two views of different types have the same identifier in the same hierarchy. This identifier is of the form id / 0x2. Ensure that other views do not use the same identifier.
So, I know that this usually means that he says - I have opinions with duplicate identifiers. This is good, but it bothers me that I think duplicate id views come with some ad network that I integrated. I tried to link with the / catch attempt in the view that contains each declaration, but it failed to catch it.
So my next thought is that ad impressions still have a role to play in this, but the crash happens on a different (my own) view that has the same identifier. The fact is, I donβt know what this point of view is and where to look for it. Do you have any idea what could be with id 0x2? (also 0x3 - a lot of reports about this identifier too)? Have you stumbled upon a similar glitch related to ad networks?
Really upset by this. Any help appreciated!
Thanks Dan
PS full stack trace:
java.lang.RuntimeException: Activity ComponentInfo {com..... android/com..... android.activities....}: java.lang.IllegalArgumentException: , View State, android.widget.ProgressBar $SavedState. , . id/0x2. , . at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667) at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:2836) at android.app.ActivityThread.access $1600 (ActivityThread.java:117) at android.app.ActivityThread $H.handleMessage(ActivityThread.java:939) android.os.Handler.dispatchMessage(Handler.java:99) android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3691) java.lang.reflect.Method.invokeNative( ) java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:907) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665) dalvik.system.NativeStart.main( ) : java.lang.IllegalArgumentException: , , android.widget.ProgressBar $SavedState. , . id/0x2. , . android.view.View.onRestoreInstanceState(View.java:6355) android.view.View.dispatchRestoreInstanceState(View.java:6331) android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:1211) android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:1215) android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:1215) android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:1215) android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:1215) android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:1215) android.view.View.restoreHierarchyState(View.java:6310) at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1537) android.app.Activity.onRestoreInstanceState(Activity.java:850) at android.app.Activity.performRestoreInstanceState(Activity.java:822) at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1096) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1629)... 12