Ive just recently released an application and checking crasalytics over the last couple of days and ive had a number of crashes relating to this error io.realm.Realm.getDefaultMediator. It seems to crash when i get the instance of realm. Ive pasted the stack trace below.
Fatal Exception: java.lang.ExceptionInInitializerError
at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57)
at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by io.realm.exceptions.RealmException: Could not find io.realm.DefaultRealmModuleMediator
at io.realm.Realm.getDefaultMediator(Realm.java:256)
at io.realm.Realm.<clinit>(Realm.java:165)
at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57)
at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by java.lang.ClassNotFoundException: io.realm.DefaultRealmModuleMediator
at java.lang.Class.classForName(Class.java)
at java.lang.Class.forName(Class.java:251)
at java.lang.Class.forName(Class.java:216)
at io.realm.Realm.getDefaultMediator(Realm.java:251)
at io.realm.Realm.<clinit>(Realm.java:165)
at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57)
at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by java.lang.NoClassDefFoundError: io/realm/DefaultRealmModuleMediator
at java.lang.Class.classForName(Class.java)
at java.lang.Class.forName(Class.java:251)
at java.lang.Class.forName(Class.java:216)
at io.realm.Realm.getDefaultMediator(Realm.java:251)
at io.realm.Realm.<clinit>(Realm.java:165)
at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57)
at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by java.lang.ClassNotFoundException: Didn't find class "io.realm.DefaultRealmModuleMediator" on path: DexPathList[[zip file "/data/app/com.electropages.mobile-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.electropages.mobile-2, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at java.lang.Class.classForName(Class.java)
at java.lang.Class.forName(Class.java:251)
at java.lang.Class.forName(Class.java:216)
at io.realm.Realm.getDefaultMediator(Realm.java:251)
at io.realm.Realm.<clinit>(Realm.java:165)
at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57)
at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
Based on the stacktrace and based on another crash we were having, i believe it may be something to do with MultiDex being enabled. The crashes were only appearing on Android 4. devices. However, if someone could just clarify it for me that would be great.
Just in case. Another issue that has been occuring is this one. Not sure if there linked as its happening on android 5 devices.
Fatal Exception: io.realm.exceptions.RealmMigrationNeededException: The SavedPart class is missing from the schema for this Realm.
at io.realm.SavedPartRealmProxy.validateTable(SavedPartRealmProxy.java:129)
at io.realm.DefaultRealmModuleMediator.validateTable(DefaultRealmModuleMediator.java:61)
at io.realm.Realm.initializeRealm(Realm.java:553)
at io.realm.Realm.createAndValidate(Realm.java:516)
at io.realm.Realm.create(Realm.java:471)
at io.realm.Realm.getInstance(Realm.java:389)
at io.realm.Realm.getInstance(Realm.java:351)
at io.realm.Realm.getInstance(Realm.java:332)
at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57)
at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
Related
I uninstalled and installed the app on my device and it started to crash.
Here is the logcat
E/Xposed: java.lang.NoSuchMethodError: com.android.internal.telephony.PhoneSubInfo#getDeviceId()#exact
at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:341)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:182)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:257)
at com.vivek.imeichangerpro.XposedIMEIChanger.handleLoadPackage(XposedIMEIChanger.java:108)
at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:34)
at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:61)
at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:106)
at de.robv.android.xposed.XposedInit$2.beforeHookedMethod(XposedInit.java:116)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:314)
at android.app.ActivityThread.handleBindApplication(<Xposed>)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1408)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5458)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
03-24 15:15:29.833 19472-19472/? E/Xposed: java.lang.NoSuchMethodError: com.android.internal.telephony.PhoneSubInfo#getDeviceId()#exact
at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:330)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:182)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:257)
at com.magic.imeichanger.XposedIMEIChanger.handleLoadPackage(XposedIMEIChanger.java:38)
at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:34)
at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:61)
at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:106)
at de.robv.android.xposed.XposedInit$2.beforeHookedMethod(XposedInit.java:116)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:314)
at android.app.ActivityThread.handleBindApplication()
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1408)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5458)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
03-24 15:15:29.877 19472-19472/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.seven.pprs.bloodlink, PID: 19472
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.seven.pprs.bloodlink/com.seven.pprs.bloodlink.LaunchActivity}: java.lang.ClassNotFoundException: Didn't find class "com.seven.pprs.bloodlink.LaunchActivity" on path: DexPathList[[zip file "/data/app/com.seven.pprs.bloodlink-2/base.apk"],nativeLibraryDirectories=[/data/app/com.seven.pprs.bloodlink-2/lib/arm, /vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2345)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2504)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5458)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.seven.pprs.bloodlink.LaunchActivity" on path: DexPathList[[zip file "/data/app/com.seven.pprs.bloodlink-2/base.apk"],nativeLibraryDirectories=[/data/app/com.seven.pprs.bloodlink-2/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2335)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2504)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5458)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.seven.pprs.bloodlink.LaunchActivity" on path: DexPathList[[dex file "/data/dalvik-cache/xposed_XResourcesSuperClass.dex"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 13 more
Suppressed: java.lang.ClassNotFoundException: com.seven.pprs.bloodlink.LaunchActivity
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 14 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
I'm trying to use the new Google Invitation api and I am getting an exception when trying to send an invite. I have added this to my gradle file:
compile 'com.google.android.gms:play-services-appinvite:7+'
And my code compiles fine. Not sure what's wrong. Here is the exception:
Process: mypackage, PID: 17623
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/appinvite/AppInviteInvitation$IntentBuilder;
at mypackage.MyActivity.sendInvitation(MyActivity.java:452)
at mypackage.MyActivity$35.share(MyActivity.java:2749)
at mypackage.dialogs.VideoListDialog$VideoListAdapter$ViewHolder.onClick(VideoListDialog.java:236)
at android.view.View.performClick(View.java:4780)
at android.view.View$PerformClick.run(View.java:19866)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.appinvite.AppInviteInvitation$IntentBuilder" on path: DexPathList[[zip file "/data/app/mypackage-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at mypackage.MyActivity.sendInvitation(MyActivity.java:452)
at mypackage.MyActivity$35.share(MyActivity.java:2749)
at mypackage.dialogs.VideoListDialog$VideoListAdapter$ViewHolder.onClick(VideoListDialog.java:236)
at android.view.View.performClick(View.java:4780)
at android.view.View$PerformClick.run(View.java:19866)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Suppressed: java.lang.ClassNotFoundException: com.google.android.gms.appinvite.AppInviteInvitation$IntentBuilder
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 14 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Looks like I missed two parts from the instructions:
Add the dependency to your project's top-level build.gradle:
classpath 'com.google.gms:google-services:1.3.0-beta1'
Add the plugin to your app-level build.gradle:
apply plugin: 'com.google.gms.google-services'
I have to edit an existing project created with another IDE and the direct import of the whole project doesn't work, so I have recreated the project copy pasting the various resources and setting the various libraries, I have also copied in the main root a folder named aidlthat contains 2 aidl files.
The projec apparently compiles without any error unfortrunately when I try to run it I get a ClassNotFoundException that seems related to the aidl files that most probably are ignored during the make.
How can I link the aidl files to the project?
the error log:
java.lang.RuntimeException: Unable to instantiate application com.android.vending.VendingApplication: java.lang.ClassNotFoundException: Didn't find class "com.android.vending.VendingApplication" on path: DexPathList[[zip file "/system/app/LicenseChecker/LicenseChecker.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
at android.app.LoadedApk.makeApplication(LoadedApk.java:563)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4529)
at android.app.ActivityThread.access$1500(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.vending.VendingApplication" on path: DexPathList[[zip file "/system/app/LicenseChecker/LicenseChecker.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.Instrumentation.newApplication(Instrumentation.java:980)
at android.app.LoadedApk.makeApplication(LoadedApk.java:558)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4529)
at android.app.ActivityThread.access$1500(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Suppressed: java.lang.ClassNotFoundException: com.android.vending.VendingApplication
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
Note that the project is a standard IntelliJ Application Moduler Project so I haven't any build.gradle file
I have my Nexus 6 connected via ADB and the Google USB driver is functional (I can run adb commands from command line) but when I try to compile my simple package on the device, it spits out this error:
`
02-02 13:38:26.091 12659-12659/com.jeremy.myfirstproject E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.jeremy.myfirstproject, PID: 12659
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.jeremy.myfirstproject/com.jeremy.myfirstproject.MyActivity}: java.lang.ClassNotFoundException: Didn't find class "com.jeremy.myfirstproject.MyActivity" on path: DexPathList[[zip file "/data/app/com.jeremy.myfirstproject-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2224)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2375)
at android.app.ActivityThread.access$900(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5238)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.jeremy.myfirstproject.MyActivity" on path: DexPathList[[zip file "/data/app/com.jeremy.myfirstproject-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.Instrumentation.newActivity(Instrumentation.java:1065)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2214)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2375)
at android.app.ActivityThread.access$900(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5238)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Suppressed: java.lang.NoClassDefFoundError: com.jeremy.myfirstproject.MyActivity
at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass(DexFile.java:226)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
at dalvik.system.DexPathList.findClass(DexPathList.java:321)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
... 14 more
Suppressed: java.lang.ClassNotFoundException: com.jeremy.myfirstproject.MyActivity
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 13 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
`
Sorry about the wall of text. I'm not sure what the problem is here, maybe someone can sort it out here?
Create a new project in Android studio and copy everything from the old project into the new one.
I am creating an app where the user has to be logged in to use the app. However, the user cannot create an account, I create it for them as not everyone is permitted to use it. I am using Parse for the database. When I start my app the app automatically closes, I am gonna post the logcat and if you can help me come to a solution I would be delighted, also possibly tell me how you spotted where it went wrong?
Thanks. I have pasted the red section of the logcat.
12-14 15:16:51.149 16230-16230/lawnswood.lsa E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: lawnswood.lsa, PID: 16230
java.lang.NoClassDefFoundError: Failed resolution of: Lbolts/Task;
at com.parse.GcmRegistrar.updateAsync(GcmRegistrar.java:44)
at com.parse.Parse.initialize(Parse.java:150)
at lawnswood.lsa.LSA.onCreate(LSA.java:12)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
Caused by: java.lang.ClassNotFoundException: Didn't find class "bolts.Task" on path: DexPathList[[zip file "/data/app/lawnswood.lsa-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at com.parse.GcmRegistrar.updateAsync(GcmRegistrar.java:44)
at com.parse.Parse.initialize(Parse.java:150)
at lawnswood.lsa.LSA.onCreate(LSA.java:12)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
Suppressed: java.lang.ClassNotFoundException: bolts.Task
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 15 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
dependencies {
compile 'com.parse.bolts:bolts-android:1.+'
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
}
please write above code in proguard-project.txt in eclipse project.