找不到方法 makeScaleUpAnimation
Could not find method makeScaleUpAnimation
我正在我的项目中使用 makeScaleUpAnimation,如下所示(片段)
ActivityOptions options =
ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight());
getActivity().startActivity(i, options.toBundle());
项目构建成功,但在运行时出现错误:
I/dalvikvm(5432): Could not find method
android.app.ActivityOptions.makeScaleUpAnimation, referenced from method
com.example.webapicaller.ui.fragment.ImageGridFragment.onItemClick
但我可以在项目的 android 库中找到该方法。
我找不到任何原因,请帮助我。谢谢。
这些方法和 类 包含在 API 级别 16 中。如果您的 targetSDK >= 16 它将编译,但是当尝试 运行 它在具有较低 Android 版本,它将在 运行 时间崩溃。
我正在我的项目中使用 makeScaleUpAnimation,如下所示(片段)
ActivityOptions options =
ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight());
getActivity().startActivity(i, options.toBundle());
项目构建成功,但在运行时出现错误:
I/dalvikvm(5432): Could not find method
android.app.ActivityOptions.makeScaleUpAnimation, referenced from method
com.example.webapicaller.ui.fragment.ImageGridFragment.onItemClick
但我可以在项目的 android 库中找到该方法。 我找不到任何原因,请帮助我。谢谢。
这些方法和 类 包含在 API 级别 16 中。如果您的 targetSDK >= 16 它将编译,但是当尝试 运行 它在具有较低 Android 版本,它将在 运行 时间崩溃。