【问题标题】:I am trying to run project on a Jelly Bean emulator, and it crashes with java.lang.NoClassDefFoundError: android.transition.Explode我正在尝试在 Jelly Bean 模拟器上运行项目,它因 java.lang.NoClassDefFoundError: android.transition.Explode 而崩溃
【发布时间】:2015-11-26 08:26:46
【问题描述】:

我的问题是可以在没有过渡的棒棒糖之前的设备上简单地运行并在带有过渡或动画的棒棒糖上运行吗?

【问题讨论】:

    标签: android animation material-design android-transitions


    【解决方案1】:
    int currentapiVersion = android.os.Build.VERSION.SDK_INT;
    if (currentapiVersion >= android.os.Build.VERSION_CODES.FROYO){
        // Do something for froyo and above versions
    } else{
        // do something for phones running an SDK before froyo
    }
    

    在此条件下检查 API 级别或 sdk 版本

    【讨论】:

      猜你喜欢
      • 2011-04-26
      • 2014-05-07
      • 2014-03-03
      • 1970-01-01
      • 2013-02-14
      • 1970-01-01
      • 1970-01-01
      • 2020-06-05
      • 2015-06-14
      相关资源
      最近更新 更多