【发布时间】:2012-05-28 11:24:59
【问题描述】:
在执行以下操作时,我在 4.0.3 中遇到 Class Not Found 异常。
Class<?> notifyBuilder = null;
try {
notifyBuilder = Class.forName("android.app.Notification.Builder");
} catch (Exception e) {
e.printStackTrace();
}
请帮忙..
【问题讨论】:
-
这可能对你有帮助 stackoverflow.com/a/10046725/1289716
-
不应该是
android.app.Notification$Builder,因为Notification是类而Builder是它的内部类? -
@Selvin 它与 Notification$Builder 一起工作,谢谢..但它适用于 android.app.AlertDialog.Builder 奇怪的权利!!!???
-
您是否有理由通过反射访问它?请记住,Android 支持包有
NotificationCompat.Builder,您可以使用它返回到 API 级别 4。 -
正在尝试修复此问题..stackoverflow.com/questions/8350615/… 我的应用程序旨在从 2.2 开始运行..
标签: android