Activity 转换错误,无法解析符号“@transition/explode”

Activity Transition error, cannot resolve symbol '@transition/explode'

我正在尝试 Activity Transitions,当我在我的 values-21/styles.xml 中粘贴以下代码时,出现错误:

cannot resolve symbol '@transition/explode'

<style name="BaseAppTheme" parent="android:Theme.Material">
  <!-- enable window content transitions -->
  <item name="android:windowContentTransitions">true</item>

  <!-- specify enter and exit transitions -->
  <item name="android:windowEnterTransition">@transition/explode</item>
  <item name="android:windowExitTransition">@transition/explode</item>

  <!-- specify shared element transitions -->
  <item name="android:windowSharedElementEnterTransition">
    @transition/change_image_transform</item>
  <item name="android:windowSharedElementExitTransition">
    @transition/change_image_transform</item>
</style>

您是否创建了包含以下内容的 res/transition/explode.xml 文件?

<transitionSet xmlns:android="http://schemas.android.com/apk/res/android">
    <explode />
</transitionSet>

最简单的答案 - 将其替换为@android:transition/explode