{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/5603","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/5603/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/5603/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/5603/events","html_url":"https://github.com/realm/realm-java/issues/5603","id":280412386,"number":5603,"title":"Realm 4.3.1 ClassNotFoundException: Didn't find class \"io.realm.internal.async.RealmThreadPoolExecutor\"","user":{"login":"lam-amsiq","id":31532839,"avatar_url":"https://avatars0.githubusercontent.com/u/31532839?v=4","gravatar_id":"","url":"https://api.github.com/users/lam-amsiq","html_url":"https://github.com/lam-amsiq","followers_url":"https://api.github.com/users/lam-amsiq/followers","following_url":"https://api.github.com/users/lam-amsiq/following{/other_user}","gists_url":"https://api.github.com/users/lam-amsiq/gists{/gist_id}","starred_url":"https://api.github.com/users/lam-amsiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lam-amsiq/subscriptions","organizations_url":"https://api.github.com/users/lam-amsiq/orgs","repos_url":"https://api.github.com/users/lam-amsiq/repos","events_url":"https://api.github.com/users/lam-amsiq/events{/privacy}","received_events_url":"https://api.github.com/users/lam-amsiq/received_events","type":"User","site_admin":false},"labels":[{"id":3545600,"url":"https://api.github.com/repos/realm/realm-java/labels/T:Help","name":"T:Help","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-12-08T08:34:01Z","updated_at":"2017-12-11T09:12:13Z","closed_at":null,"author_association":"NONE","body":"<!---\r\n\r\n**Questions**: If you have questions about how to use Realm, ask on\r\n[StackOverflow](http://stackoverflow.com/questions/ask?tags=realm).\r\nWe monitor the `realm` tag.\r\n\r\n**Feature Request**: Just fill in the first two sections below.\r\n\r\n**Bugs**: To help you as fast as possible with an issue please describe your issue\r\nand the steps you have taken to reproduce it in as many details as possible.\r\n\r\n-->\r\n\r\n#### Goal\r\n\r\nSetup realm\r\n\r\n#### Expected Results\r\n\r\nRealm configured\r\n\r\n#### Actual Results\r\n\r\n```\r\n12-08 09:26:29.513 8300-8300/com.app E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                          Process: com.app, PID: 8300\r\n                                                          java.lang.NoClassDefFoundError: Failed resolution of: Lio/realm/internal/async/RealmThreadPoolExecutor;\r\n                                                              at io.realm.BaseRealm.<clinit>(BaseRealm.java:72)\r\n                                                              at io.realm.Realm.init(Realm.java)\r\n                                                              at com.app.controllers.MyApplication.setupRealm(MyApplication.java:142)\r\n                                                              at com.app.controllers.MyApplication.onCreate(MyApplication.java:83)\r\n                                                              at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1032)\r\n                                                              at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5885)\r\n                                                              at android.app.ActivityThread.-wrap3(ActivityThread.java)\r\n                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1703)\r\n                                                              at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                              at android.os.Looper.loop(Looper.java:154)\r\n                                                              at android.app.ActivityThread.main(ActivityThread.java:6692)\r\n                                                              at java.lang.reflect.Method.invoke(Native Method)\r\n                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)\r\n                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)\r\n                                                           Caused by: java.lang.ClassNotFoundException: Didn't find class \"io.realm.internal.async.RealmThreadPoolExecutor\" on path: DexPathList[[zip file \"/data/app/com.app-2/base.apk\"],nativeLibraryDirectories=[/data/app/com.app-2/lib/arm64, /data/app/com.app-2/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]\r\n                                                              at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\n                                                              at java.lang.ClassLoader.loadClass(ClassLoader.java:380)\r\n                                                              at java.lang.ClassLoader.loadClass(ClassLoader.java:312)\r\n                                                              at io.realm.BaseRealm.<clinit>(BaseRealm.java:72) \r\n                                                              at io.realm.Realm.init(Realm.java) \r\n                                                              at com.app.controllers.MyApplication.setupRealm(MyApplication.java:142) \r\n                                                              at com.app.controllers.MyApplication.onCreate(MyApplication.java:83) \r\n                                                              at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1032) \r\n                                                              at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5885) \r\n                                                              at android.app.ActivityThread.-wrap3(ActivityThread.java) \r\n                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1703) \r\n                                                              at android.os.Handler.dispatchMessage(Handler.java:102) \r\n                                                              at android.os.Looper.loop(Looper.java:154) \r\n                                                              at android.app.ActivityThread.main(ActivityThread.java:6692) \r\n                                                              at java.lang.reflect.Method.invoke(Native Method) \r\n                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468) \r\n                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358) \r\n```\r\n\r\n#### Steps & Code to Reproduce\r\n\r\n> Describe your current debugging efforts.\r\n\r\n#### Code Sample\r\nFails at Realm.init(this);, where this is instance of Application\r\n```java\r\n    private void setupRealm() {\r\n        Realm.init(this);\r\n        try {\r\n            RealmConfiguration newConfig = new RealmConfiguration.Builder().schemaVersion(2).deleteRealmIfMigrationNeeded().compactOnLaunch().build();\r\n            Realm.setDefaultConfiguration(newConfig);\r\n        } catch (RuntimeException ignore) {}\r\n    }\r\n```\r\n\r\n#### Version of Realm and tooling\r\nRealm version(s): 4.3.1\r\n\r\nWhich Android version and device: Any\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/350664358","html_url":"https://github.com/realm/realm-java/issues/5603#issuecomment-350664358","issue_url":"https://api.github.com/repos/realm/realm-java/issues/5603","id":350664358,"user":{"login":"Zhuinden","id":11718392,"avatar_url":"https://avatars1.githubusercontent.com/u/11718392?v=4","gravatar_id":"","url":"https://api.github.com/users/Zhuinden","html_url":"https://github.com/Zhuinden","followers_url":"https://api.github.com/users/Zhuinden/followers","following_url":"https://api.github.com/users/Zhuinden/following{/other_user}","gists_url":"https://api.github.com/users/Zhuinden/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhuinden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhuinden/subscriptions","organizations_url":"https://api.github.com/users/Zhuinden/orgs","repos_url":"https://api.github.com/users/Zhuinden/repos","events_url":"https://api.github.com/users/Zhuinden/events{/privacy}","received_events_url":"https://api.github.com/users/Zhuinden/received_events","type":"User","site_admin":false},"created_at":"2017-12-11T09:12:13Z","updated_at":"2017-12-11T09:12:13Z","author_association":"NONE","body":"@lam-amsiq this might seem like a silly question, but the application class is specified in AndroidManifest.xml as `android:name=\"appclass\"` rightM"}}
{"actor":{"display_login":"Zhuinden"}}