{"action":"created","issue":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/241","labels_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/241/comments","events_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/241/events","html_url":"https://github.com/Raizlabs/DBFlow/issues/241","id":76394007,"number":241,"title":"Didn't find class \"com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder\"","user":{"login":"rmirabelle","id":87966,"avatar_url":"https://avatars.githubusercontent.com/u/87966?v=3","gravatar_id":"","url":"https://api.github.com/users/rmirabelle","html_url":"https://github.com/rmirabelle","followers_url":"https://api.github.com/users/rmirabelle/followers","following_url":"https://api.github.com/users/rmirabelle/following{/other_user}","gists_url":"https://api.github.com/users/rmirabelle/gists{/gist_id}","starred_url":"https://api.github.com/users/rmirabelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmirabelle/subscriptions","organizations_url":"https://api.github.com/users/rmirabelle/orgs","repos_url":"https://api.github.com/users/rmirabelle/repos","events_url":"https://api.github.com/users/rmirabelle/events{/privacy}","received_events_url":"https://api.github.com/users/rmirabelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-14T15:26:28Z","updated_at":"2015-06-18T17:51:00Z","closed_at":null,"body":"```\r\n05-14 11:22:23.349    2832-2832/com.mirabelle.app E/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n    Process: com.mirabelle.app, PID: 2832\r\n    java.lang.RuntimeException: Unable to create application com.mirabelle.liquid.MyApplication: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder\r\n            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4556)\r\n            at android.app.ActivityThread.access$1500(ActivityThread.java:151)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)\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:5254)\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:903)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n     Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder\r\n            at com.raizlabs.android.dbflow.config.FlowManager.getDatabaseHolder(FlowManager.java:116)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.init(FlowManager.java:155)\r\n            at com.mirabelle.liquid.MyApplication.onCreate(MyApplication.groovy:17)\r\n            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)\r\n            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553)\r\n            at android.app.ActivityThread.access$1500(ActivityThread.java:151)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)\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:5254)\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:903)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n     Caused by: java.lang.ClassNotFoundException: com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder\r\n            at java.lang.Class.classForName(Native Method)\r\n            at java.lang.Class.forName(Class.java:309)\r\n            at java.lang.Class.forName(Class.java:273)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.getDatabaseHolder(FlowManager.java:113)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.init(FlowManager.java:155)\r\n            at com.mirabelle.liquid.MyApplication.onCreate(MyApplication.groovy:17)\r\n            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)\r\n            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553)\r\n            at android.app.ActivityThread.access$1500(ActivityThread.java:151)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)\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:5254)\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:903)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n     Caused by: java.lang.ClassNotFoundException: Didn't find class \"com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder\" on path: DexPathList[[zip file \"/data/app/com.mirabelle.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:309)\r\n            at java.lang.Class.forName(Class.java:273)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.getDatabaseHolder(FlowManager.java:113)\r\n            at com.raizlabs.android.dbflow.config.FlowManager.init(FlowManager.java:155)\r\n            at com.mirabelle.liquid.MyApplication.onCreate(MyApplication.groovy:17)\r\n            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)\r\n            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553)\r\n            at android.app.ActivityThread.access$1500(ActivityThread.java:151)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)\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:5254)\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:903)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n    Suppressed: java.lang.ClassNotFoundException: com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder\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            ... 18 more\r\n     Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available\r\n```\r\nProject `build.gradle`:\r\n```\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:1.2.2'\r\n        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'\r\n        classpath 'org.codehaus.groovy:gradle-groovy-android-plugin:0.3.6'\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        jcenter()\r\n        maven { url \"https://raw.github.com/Raizlabs/maven-releases/master/releases\" }\r\n    }\r\n}\r\n```\r\n\r\nModule `build.gradle`:\r\n\r\n```\r\napply plugin: 'com.android.application'\r\napply plugin: 'groovyx.grooid.groovy-android'\r\napply plugin: 'com.neenbedankt.android-apt'\r\n\r\nandroid {\r\n    compileSdkVersion 22\r\n    buildToolsVersion \"22.0.1\"\r\n\r\n    defaultConfig {\r\n        applicationId \"com.mirabelle.app\"\r\n        minSdkVersion 17\r\n        targetSdkVersion 22\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n}\r\n\r\ndependencies {\r\n\r\n    compile fileTree(dir: 'libs', include: ['*.jar'])\r\n    compile 'com.android.support:appcompat-v7:22.1.1'\r\n    compile 'org.codehaus.groovy:groovy:2.4.3:grooid'\r\n    compile 'io.reactivex:rxjava:1.0.10'\r\n    compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'\r\n    compile 'com.squareup.okhttp:okhttp:2.3.0'\r\n    compile 'com.squareup.retrofit:retrofit:1.9.0'\r\n    apt 'com.raizlabs.android:DBFlow-Compiler:2.0.0'\r\n    compile 'com.raizlabs.android:DBFlow-Core:2.0.0'\r\n    compile 'com.raizlabs.android:DBFlow:2.0.0'\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/comments/113235282","html_url":"https://github.com/Raizlabs/DBFlow/issues/241#issuecomment-113235282","issue_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/241","id":113235282,"user":{"login":"matteinn","id":531755,"avatar_url":"https://avatars.githubusercontent.com/u/531755?v=3","gravatar_id":"","url":"https://api.github.com/users/matteinn","html_url":"https://github.com/matteinn","followers_url":"https://api.github.com/users/matteinn/followers","following_url":"https://api.github.com/users/matteinn/following{/other_user}","gists_url":"https://api.github.com/users/matteinn/gists{/gist_id}","starred_url":"https://api.github.com/users/matteinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteinn/subscriptions","organizations_url":"https://api.github.com/users/matteinn/orgs","repos_url":"https://api.github.com/users/matteinn/repos","events_url":"https://api.github.com/users/matteinn/events{/privacy}","received_events_url":"https://api.github.com/users/matteinn/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T17:51:00Z","updated_at":"2015-06-18T17:51:00Z","body":"Same issue here with v1.8.1\r\nI'm simply calling \r\nFlowManager.init(this);\r\nin the Application class.\r\n\r\nAffected devices:\r\n- Samsung Galaxy Note II with 4.4.4 and virtual device (Genymotion) running 4.4.4\r\nWorks fine with Lollipop"}}