Android 6.0 Marshmallow : Weird Error With Fragment Animation
Solution 1:
This is bug on Marshmallow when we do scale animation. For now we found a workaround by setting view.setLayerType(View.LAYER_TYPE_SOFTWARE)
see documentation
Solution 2:
For me it was a NullPointer exception masked as this because of Proguard obfuscation. Run without Proguard and hopefully you'll see the underlying exception.
Solution 3:
I got this exception and same problem Failed to dispatch window animation state change.android.os.DeadObjectException
.
apparently this happened because i forgot to mention activity in manifest file.
I was able to fix it by adding activity in AndroidManifest.xml
file.
simply added following with activity class name and solved the problem
example :
<activityandroid:name="packageName.ClassName"android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"android:screenOrientation="portrait"android:theme="@style/Theme.ActionBarSize_all_view"></activity>
Solution 4:
In my case, my app didn't crash but the transition between activities was buggy on >6.0. The reason was that one of the activities had the windowBackground property from its style set to @null. I commented it and it got fixed.
<stylename="CustomActionBarTheme"parent="@style/Theme.AppCompat.Light.DarkActionBar"><itemname="android:windowBackground">@null</item></style>
Post a Comment for "Android 6.0 Marshmallow : Weird Error With Fragment Animation"