android - java.lang.NoClassDefFoundError -
i getting java.lang.noclassdeffounderror
error constant_country class, exist inside com.mi.uvite.model
package.
class exist still says noclassdeffounderror
. how can overcome issue?
java.lang.noclassdeffounderror: com.mi.uvite.model.constant_country @ com.mi.uvite.db.midatabasehandler.createcountrytable(midatabasehandler.java:911) @ com.mi.uvite.db.midatabasehandler.oncreate(midatabasehandler.java:632) @ android.database.sqlite.sqliteopenhelper.getdatabaselocked(sqliteopenhelper.java:252) @ android.database.sqlite.sqliteopenhelper.getreadabledatabase(sqliteopenhelper.java:188) @ com.mi.uvite.db.midatabasehandler.rowcount(midatabasehandler.java:570) @ com.mi.uvite.backgroundintentservice$1.onresponse(backgroundintentservice.java:110) @ com.mi.uvite.backgroundintentservice$1.onresponse(backgroundintentservice.java:67) @ com.android.volley.toolbox.stringrequest.deliverresponse(stringrequest.java:60) @ com.android.volley.toolbox.stringrequest.deliverresponse(stringrequest.java:1) @ com.android.volley.executordelivery$responsedeliveryrunnable.run(executordelivery.java:99) @ android.os.handler.handlecallback(handler.java:725) @ android.os.handler.dispatchmessage(handler.java:92) @ android.os.looper.loop(looper.java:137)
and
public class constant_country { public static string country_id = "country_id"; public static string country_short_code = "country_short_code"; public static string country_name = "country_name"; public static string country_code = "country_code"; }
i think have add class constant_country package com.mi.uvite.model , put in first line of constant_country
package com.mi.uvite.model
remember if use object of type constant_country have use import.
Comments
Post a Comment