{"action":"created","issue":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/40","labels_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/40/comments","events_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/40/events","html_url":"https://github.com/Raizlabs/DBFlow/issues/40","id":56599545,"number":40,"title":"Unable to run due to ClassNotFoundxception: com.raizlabs.android.dbflow.config.Database$Holder","user":{"login":"fhur","id":6452323,"avatar_url":"https://avatars.githubusercontent.com/u/6452323?v=3","gravatar_id":"","url":"https://api.github.com/users/fhur","html_url":"https://github.com/fhur","followers_url":"https://api.github.com/users/fhur/followers","following_url":"https://api.github.com/users/fhur/following{/other_user}","gists_url":"https://api.github.com/users/fhur/gists{/gist_id}","starred_url":"https://api.github.com/users/fhur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhur/subscriptions","organizations_url":"https://api.github.com/users/fhur/orgs","repos_url":"https://api.github.com/users/fhur/repos","events_url":"https://api.github.com/users/fhur/events{/privacy}","received_events_url":"https://api.github.com/users/fhur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-04T22:44:37Z","updated_at":"2015-02-04T22:58:36Z","closed_at":null,"body":"My app is crashing as soon as the `Application.onCreate` method is called:\r\n\r\n```java\r\n    @Override\r\n    public void onCreate() {\r\n        super.onCreate();\r\n        FlowManager.init(this); // <== crash here\r\n\r\n        // do some other stuff\r\n    }\r\n```\r\n\r\nApparently it's looking for a `Database.Holder` class (which clearly does not exist). Am I missing something? \r\n\r\nThis is the stacktrace. Tested on both 1.3.1 and 1.3.0.\r\n```\r\njava.lang.RuntimeException: Unable to create application com.my.app.App: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.raizlabs.android.dbflow.config.Database$Holder\r\n            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4521)\r\n            at android.app.ActivityThread.access$1500(ActivityThread.java:144)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5221)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n     Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.raizlabs.android.dbflow.config.Database$Holder\r\n            at com.raizlabs.android.dbflow.config.FlowManager.getDatabaseHolder(FlowManager.java:90)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.init(FlowManager.java:127)\r\n            at com.my.app.App.onCreate(App.java:36)\r\n            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)\r\n            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)\r\n            at android.app.ActivityThread.access$1500(ActivityThread.java:144)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5221)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n     Caused by: java.lang.ClassNotFoundException: com.raizlabs.android.dbflow.config.Database$Holder\r\n            at java.lang.Class.classForName(Native Method)\r\n            at java.lang.Class.forName(Class.java:308)\r\n            at java.lang.Class.forName(Class.java:272)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.getDatabaseHolder(FlowManager.java:88)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.init(FlowManager.java:127)\r\n            at com.my.app.App.onCreate(App.java:36)\r\n            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)\r\n            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)\r\n            at android.app.ActivityThread.access$1500(ActivityThread.java:144)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5221)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n     Caused by: java.lang.ClassNotFoundException: Didn't find class \"com.raizlabs.android.dbflow.config.Database$Holder\" on path: DexPathList[[zip file \"/data/app/com.my.app-2/base.apk\"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]\r\n            at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\n            at java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\n            at java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\n            at java.lang.Class.classForName(Native Method)\r\n            at java.lang.Class.forName(Class.java:308)\r\n            at java.lang.Class.forName(Class.java:272)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.getDatabaseHolder(FlowManager.java:88)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.init(FlowManager.java:127)\r\n            at com.my.app.App.onCreate(App.java:36)\r\n            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)\r\n            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)\r\n            at android.app.ActivityThread.access$1500(ActivityThread.java:144)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5221)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n    Suppressed: java.lang.ClassNotFoundException: com.raizlabs.android.dbflow.config.Database$Holder\r\n            at java.lang.Class.classForName(Native Method)\r\n            at java.lang.BootClassLoader.findClass(ClassLoader.java:781)\r\n            at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)\r\n            at java.lang.ClassLoader.loadClass(ClassLoader.java:504)\r\n```"},"comment":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/comments/72958734","html_url":"https://github.com/Raizlabs/DBFlow/issues/40#issuecomment-72958734","issue_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/40","id":72958734,"user":{"login":"fhur","id":6452323,"avatar_url":"https://avatars.githubusercontent.com/u/6452323?v=3","gravatar_id":"","url":"https://api.github.com/users/fhur","html_url":"https://github.com/fhur","followers_url":"https://api.github.com/users/fhur/followers","following_url":"https://api.github.com/users/fhur/following{/other_user}","gists_url":"https://api.github.com/users/fhur/gists{/gist_id}","starred_url":"https://api.github.com/users/fhur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhur/subscriptions","organizations_url":"https://api.github.com/users/fhur/orgs","repos_url":"https://api.github.com/users/fhur/repos","events_url":"https://api.github.com/users/fhur/events{/privacy}","received_events_url":"https://api.github.com/users/fhur/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T22:58:36Z","updated_at":"2015-02-04T22:58:36Z","body":"Enabling the `apt` plugin yields a cryptic\r\n\r\n```\r\nInformation:Gradle tasks [:app-android:assembleAppDebug]\r\n...\r\nError:Execution failed for task ':app-android:compileAppDebugJava'.\r\n> java.lang.NullPointerException\r\n```\r\n\r\nwhich is why I disabled `apt`.\r\n\r\n\r\nI don't have `AARLinkSources` enabled, is it necessary?"}}