java.lang.NoClassDefFoundError:android.support.v4.app.JobIntentService $ JobServiceEngineImpl

时间:2018-08-05 09:38:59

标签: android sqlite android-studio sugarorm

当我被称为
mBasicActions=BasicActions.findById(BasicActions.class,1);
时,它显示以下错误。
java.lang.NoClassDefFoundError:android.support.v4.app.JobIntentService $ JobServiceEngineImpl                                                                                            在java.lang.Class.classForName(本机方法)                                                                                            在java.lang.Class.forName(Class.java:324)                                                                                            在com.orm.util.ReflectionUtil.getDomainClass(ReflectionUtil.java:270)                                                                                            在com.orm.util.ReflectionUtil.getDomainClasses(ReflectionUtil.java:254)                                                                                            在com.orm.SchemaGenerator.createDatabase(SchemaGenerator.java:37)                                                                                            在com.orm.SugarDb.onCreate(SugarDb.java:26)                                                                                            在android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:251)                                                                                            在android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)                                                                                            在com.orm.SugarDb.getDB(SugarDb.java:36)                                                                                            在com.orm.SugarRecord.find(SugarRecord.java:189)                                                                                            在com.orm.SugarRecord.findById(SugarRecord.java:102)                                                                                            在com.orm.SugarRecord.findById(SugarRecord.java:108)                                                                                            在a.example.com.LoginPageActivity.onCreate(LoginPageActivity.java:76)                                                                                            在android.app.Activity.performCreate(Activity.java:6245)                                                                                            在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)                                                                                            在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)                                                                                            在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)                                                                                            在android.app.ActivityThread.-wrap11(ActivityThread.java)                                                                                            在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1354)                                                                                            在android.os.Handler.dispatchMessage(Handler.java:102)                                                                                            在android.os.Looper.loop(Looper.java:148)                                                                                            在android.app.ActivityThread.main(ActivityThread.java:5443)                                                                                            在java.lang.reflect.Method.invoke(本机方法)                                                                                            在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:728)                                                                                            在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

 compileSdkVersion 27
    defaultConfig {
        applicationId "example"
        minSdkVersion 21
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        externalNativeBuild {
            cmake {
                cppFlags ""
            }
        }
        multiDexEnabled true
    }

0 个答案:

没有答案