{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/342","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/342/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/342/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-Android/issues/342","id":126474612,"number":342,"title":"Application crashes On android 4.4.x and below.","user":{"login":"Ethan-Velosys","id":12649404,"avatar_url":"https://avatars.githubusercontent.com/u/12649404?v=3","gravatar_id":"","url":"https://api.github.com/users/Ethan-Velosys","html_url":"https://github.com/Ethan-Velosys","followers_url":"https://api.github.com/users/Ethan-Velosys/followers","following_url":"https://api.github.com/users/Ethan-Velosys/following{/other_user}","gists_url":"https://api.github.com/users/Ethan-Velosys/gists{/gist_id}","starred_url":"https://api.github.com/users/Ethan-Velosys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ethan-Velosys/subscriptions","organizations_url":"https://api.github.com/users/Ethan-Velosys/orgs","repos_url":"https://api.github.com/users/Ethan-Velosys/repos","events_url":"https://api.github.com/users/Ethan-Velosys/events{/privacy}","received_events_url":"https://api.github.com/users/Ethan-Velosys/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/labels/needs%20more%20info","name":"needs more info","color":"ffd182"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-13T17:47:37Z","updated_at":"2016-01-28T20:09:53Z","closed_at":null,"body":"All of this code works on Android 5.0 and up.\r\nI'm using Parse version 1.12.0\r\n\r\nHere is my stack trace. It crashes on the first attempt to register a subclass of parseobject.\r\n\r\n              01-13 12:18:26.500 1347-1347/? E/AndroidRuntime: FATAL EXCEPTION: main\r\n             java.lang.NoClassDefFoundError: com.parse.ParseObject$1\r\n                 at com.parse.ParseObject.<clinit>(ParseObject.java:316)\r\n                 at com.company.myapp.utils.Application.onCreate(PensterApplication.java:36)\r\n                 at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)\r\n                 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4444)\r\n                 at android.app.ActivityThread.access$1300(ActivityThread.java:141)\r\n                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)\r\n                 at android.os.Handler.dispatchMessage(Handler.java:99)\r\n                 at android.os.Looper.loop(Looper.java:137)\r\n                 at android.app.ActivityThread.main(ActivityThread.java:5103)\r\n                 at java.lang.reflect.Method.invokeNative(Native Method)\r\n                 at java.lang.reflect.Method.invoke(Method.java:525)\r\n                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)\r\n                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)\r\n                 at dalvik.system.NativeStart.main(Native Method)\r\n\r\n\r\nHere is the Application class where it crashes.\r\nI've altered the class names to post online here\r\n\r\n      public class myApplication extends Application {\r\n            @Override\r\n            public void onCreate() {\r\n                super.onCreate();\r\n                FacebookSdk.sdkInitialize(this);\r\n\r\n                // Enable Local Datastore.\r\n                Parse.enableLocalDatastore(this);\r\n\r\n                // Parse classes that need registering\r\n                ParseObject.registerSubclass(aaa.class); //error happens here\r\n                ParseObject.registerSubclass(bbb.class);\r\n                ParseObject.registerSubclass(ccc.class);\r\n                ParseObject.registerSubclass(ddd.class);\r\n                ParseObject.registerSubclass(eee.class);\r\n                ParseObject.registerSubclass(fff.class);\r\n                ParseObject.registerSubclass(ggg.class);\r\n                ParseObject.registerSubclass(hhh.class);\r\n                ParseObject.registerSubclass(iii.class);\r\n                ParseObject.registerSubclass(jjj.class);\r\n                Parse.initialize(this, PARSE_APPLICATION_ID, PARSE_CLIENT_KEY);\r\n\r\n                //set a default acl so that default is not public read.write\r\n                if (ParseUser.getCurrentUser() != null) {\r\n                    ParseACL defaultACL = new ParseACL(ParseUser.getCurrentUser());\r\n                    defaultACL.setPublicReadAccess(false);\r\n                    defaultACL.setPublicWriteAccess(false);\r\n                    ParseACL.setDefaultACL(defaultACL, true);\r\n                }\r\n\r\n                // Save this installation\r\n                ParseInstallation.getCurrentInstallation().saveInBackground();\r\n                ParseFacebookUtils.initialize(this);\r\n                ParseTwitterUtils.initialize(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET);\r\n\r\n            }\r\n        }\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/comments/176381169","html_url":"https://github.com/ParsePlatform/Parse-SDK-Android/issues/342#issuecomment-176381169","issue_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/342","id":176381169,"user":{"login":"grantland","id":277030,"avatar_url":"https://avatars.githubusercontent.com/u/277030?v=3","gravatar_id":"","url":"https://api.github.com/users/grantland","html_url":"https://github.com/grantland","followers_url":"https://api.github.com/users/grantland/followers","following_url":"https://api.github.com/users/grantland/following{/other_user}","gists_url":"https://api.github.com/users/grantland/gists{/gist_id}","starred_url":"https://api.github.com/users/grantland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantland/subscriptions","organizations_url":"https://api.github.com/users/grantland/orgs","repos_url":"https://api.github.com/users/grantland/repos","events_url":"https://api.github.com/users/grantland/events{/privacy}","received_events_url":"https://api.github.com/users/grantland/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T20:09:53Z","updated_at":"2016-01-28T20:09:53Z","body":"Could both of you show me your `build.gradle` files? Also, would either of you be using multidex?\r\n\r\n@Ethan-Velosys Have you tried decompiling your application to see if those classes actually exist?\r\n\r\n@Rhadammanthis Your issue seems slightly different as the error is not the same. Do you have proguard enabled and have you tried disabling it? Is this also occurring on 1.12.0 or another SDK version?"}}