获取错误NoClassDefFoundError

时间:2018-05-15 19:44:43

标签: android classloader noclassdeffounderror linkageerror dvm

我得到NoClassDefFoundError错误有些时候我无法找到问题

这是我的Google控制台崩溃报告

java.lang.NoClassDefFoundError: 
at com.myapp.app.rise.networkoperations.NetworkService.onHandleIntent
at android.app.IntentService$ServiceHandler.handleMessage 
(IntentService.java:65)
at android.os.Handler.dispatchMessage (Handler.java:111)
at android.os.Looper.loop (Looper.java:210)
at android.os.HandlerThread.run (HandlerThread.java:61)

MY OnHandleIntent Method

protected void onHandleIntent(Intent intent) {
//Getting Exception Here NoClassDefFoundError
try {
if (Constants.isManualSyncInitiated) {
isManualSync = true;
Constants.isManualSyncInitiated = false;
}
}catch (ExceptionInInitializerError e){
e.printStackTrace();
}catch (Exception e){
e.printStackTrace();
}
if (WebServiceSingleTon.getInstance().isNetworkAvailable
(getApplicationContext())) {
ConstantsNonStatic constantsNonStatic = new ConstantsNonStatic();
dowanloadURL = constantsNonStatic.SYNC_DOWNLOAD_URL;
List<SyncMaster> syncQueue;
DBUtility db = new DBUtility(getApplicationContext());
syncQueue = db.getSyncDataToProcess();
InAppPurchaseUtility.getInAppProductPrivileges(getApplicationContext());
if (syncQueue.size() > 0) {
this.uploadContactsToCloud(syncQueue);
}
this.downloadContactsFromCloud();
}
}

0 个答案:

没有答案