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

时间:2016-02-22 20:29:07

标签: java android android-sqlite

这是我见过的最奇怪的错误,在我发现数据库泄露错误之后我通过使用静态实例来解决它,现在我的活动崩溃但不是每次只有当我多次使用它并使用其他活动时回到它会崩溃与

下面的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

使用此静态实例时我的活动代码是

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);

    }

我已经搜索了很多没有运气的解决方案,所以请任何帮助都是宝贵的

1 个答案:

答案 0 :(得分:1)

SEC是三星电子公司。它看起来像是内置时钟应用程序中的问题,而不是你的。