gpt4 book ai didi

java - 无法找到签名中引用的类(Landroid/sec/multiwindow/MultiWindow;)

转载 作者:行者123 更新时间:2023-12-01 10:21:36 26 4
gpt4 key购买 nike

这是我见过的最奇怪的错误,在我遇到数据库泄漏错误后,我通过使用静态实例解决了它,现在我的 Activity 崩溃了,但不是每次都崩溃,只有当我多次使用它并使用另一个 Activity 时回到它,它会崩溃并显示下面的 logcat

02-22 22:42:40.332    2906-2916/? W/dalvikvm﹕ VFY: unable to find class referenced in signature (Landroid/sec/multiwindow/MultiWindow;)
02-22 22:42:40.332 2906-2916/? I/dalvikvm﹕ Could not find method android.sec.multiwindow.MultiWindow.getRect, referenced from method com.sec.android.app.clockpackage.alarm.MultiWindowActivity.setScreen
02-22 22:42:40.332 2906-2916/? W/dalvikvm﹕ VFY: unable to resolve virtual method 580: Landroid/sec/multiwindow/MultiWindow;.getRect ()Landroid/graphics/Rect;
02-22 22:42:40.332 2906-2916/? D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0018
02-22 22:42:40.332 2906-2916/? I/dalvikvm﹕ Could not find method android.sec.multiwindow.MultiWindow.createInstance, referenced from method com.sec.android.app.clockpackage.alarm.MultiWindowActivity.MWEnableMultiWindow
02-22 22:42:40.332 2906-2916/? W/dalvikvm﹕ VFY: unable to resolve static method 579: Landroid/sec/multiwindow/MultiWindow;.createInstance (Landroid/app/Activity;)Landroid/sec/multiwindow/MultiWindow;
02-22 22:42:40.332 2906-2916/? D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0005
02-22 22:42:40.332 2906-2916/? W/dalvikvm﹕ VFY: unable to find class referenced in signature (Landroid/sec/multiwindow/MultiWindow;)
02-22 22:42:40.332 2906-2916/? I/dalvikvm﹕ Could not find method android.sec.multiwindow.MultiWindow.isMultiWindow, referenced from method com.sec.android.app.clockpackage.alarm.MultiWindowActivity.MWIsMultiWindow_MW
02-22 22:42:40.332 2906-2916/? W/dalvikvm﹕ VFY: unable to resolve virtual method 581: Landroid/sec/multiwindow/MultiWindow;.isMultiWindow ()Z
02-22 22:42:40.332 2906-2916/? D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0014

使用此静态实例时我的 Activity 的代码是这样的

protected void onStart() {
super.onStart();

try {
if (DBconnection.getInstance(getApplicationContext()).hasData("Standing")) {
try {

StandingDataList = DBconnection.getInstance(getApplicationContext()).GetAllStanding();
Standing_adapter = new ExpandableAdapter(getApplicationContext(), StandingDataList);
Standing_ListView.setAdapter(Standing_adapter);
Standing_adapter.notifyDataSetChanged();
} catch (Exception e) {
e.getMessage();
}

这是我的数据库助手类

public class DBconnection extends SQLiteOpenHelper {
public static final String DBName="my.db";
public static final int Version=1;
private static DBconnection mInstance = null;



public static DBconnection getInstance(Context ctx) {
if (mInstance == null) {
mInstance = new DBconnection(ctx.getApplicationContext());
}
return mInstance;
}
private DBconnection(Context context) {
super(context, DBName, null, Version);

}

我已经寻找了很多解决方案但没有运气,所以请任何帮助将是宝贵的

最佳答案

SEC 是三星电子公司。这看起来像是他们的内置时钟应用程序的问题,而不是您的问题。

关于java - 无法找到签名中引用的类(Landroid/sec/multiwindow/MultiWindow;),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35563186/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com