{"action":"created","issue":{"url":"https://api.github.com/repos/chrisjenx/Calligraphy/issues/224","repository_url":"https://api.github.com/repos/chrisjenx/Calligraphy","labels_url":"https://api.github.com/repos/chrisjenx/Calligraphy/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/chrisjenx/Calligraphy/issues/224/comments","events_url":"https://api.github.com/repos/chrisjenx/Calligraphy/issues/224/events","html_url":"https://github.com/chrisjenx/Calligraphy/issues/224","id":118855982,"number":224,"title":"NoClassDefFoundError while loading my activity","user":{"login":"mSobhy90","id":1512973,"avatar_url":"https://avatars.githubusercontent.com/u/1512973?v=3","gravatar_id":"","url":"https://api.github.com/users/mSobhy90","html_url":"https://github.com/mSobhy90","followers_url":"https://api.github.com/users/mSobhy90/followers","following_url":"https://api.github.com/users/mSobhy90/following{/other_user}","gists_url":"https://api.github.com/users/mSobhy90/gists{/gist_id}","starred_url":"https://api.github.com/users/mSobhy90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mSobhy90/subscriptions","organizations_url":"https://api.github.com/users/mSobhy90/orgs","repos_url":"https://api.github.com/users/mSobhy90/repos","events_url":"https://api.github.com/users/mSobhy90/events{/privacy}","received_events_url":"https://api.github.com/users/mSobhy90/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2015-11-25T15:08:13Z","updated_at":"2016-12-07T18:16:57Z","closed_at":"2015-12-18T21:48:52Z","body":"Awesome library, makes custom fonts a breathe.\nWork fine on my testing device (Nexus 5 running M) but crashed with the following stack trace on a Samsung (no surprise there) device (GT S7272 running 4.2.2)\nAny ideas?\n\n```\nFatal Exception: java.lang.NoClassDefFoundError: uk.co.chrisjenx.calligraphy.R$attr\n       at uk.co.chrisjenx.calligraphy.CalligraphyConfig$Builder.<init>(CalligraphyConfig.java:150)\n       at net.sarmady.contactcarswithtabs.ContactCarsApplication.onCreate(ContactCarsApplication.java:145)\n       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)\n       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4552)\n       at android.app.ActivityThread.access$1400(ActivityThread.java:150)\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)\n       at android.os.Handler.dispatchMessage(Handler.java:99)\n       at android.os.Looper.loop(Looper.java:137)\n       at android.app.ActivityThread.main(ActivityThread.java:5279)\n       at java.lang.reflect.Method.invokeNative(Method.java)\n       at java.lang.reflect.Method.invoke(Method.java:511)\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)\n       at dalvik.system.NativeStart.main(NativeStart.java)\n```\n"},"comment":{"url":"https://api.github.com/repos/chrisjenx/Calligraphy/issues/comments/265526901","html_url":"https://github.com/chrisjenx/Calligraphy/issues/224#issuecomment-265526901","issue_url":"https://api.github.com/repos/chrisjenx/Calligraphy/issues/224","id":265526901,"user":{"login":"chrisjenx","id":1167793,"avatar_url":"https://avatars.githubusercontent.com/u/1167793?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisjenx","html_url":"https://github.com/chrisjenx","followers_url":"https://api.github.com/users/chrisjenx/followers","following_url":"https://api.github.com/users/chrisjenx/following{/other_user}","gists_url":"https://api.github.com/users/chrisjenx/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjenx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjenx/subscriptions","organizations_url":"https://api.github.com/users/chrisjenx/orgs","repos_url":"https://api.github.com/users/chrisjenx/repos","events_url":"https://api.github.com/users/chrisjenx/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjenx/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T18:16:56Z","updated_at":"2016-12-07T18:16:56Z","body":"And do you call multi dex before anything else? You seem to be missing your\napplication class.\n\nOn Wed, 7 Dec 2016, 00:21 OlzD, <notifications@github.com> wrote:\n\n> Here are my settings\n> App Module:\n> compileSdkVersion 25\n> buildToolsVersion '25.0.0'\n> minSdkVersion 15\n> targetSdkVersion 25\n>\n> compile 'com.android.support:multidex:1.0.1'\n> compile 'uk.co.chrisjenx:calligraphy:2.2.0'\n>\n> Error:\n>\n> java.lang.NoClassDefFoundError: uk.co.chrisjenx.calligraphy.CalligraphyConfig\n> at uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper.<init> (CalligraphyContextWrapper.java:86)\n> at uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper.wrap(CalligraphyContextWrapper.java:31)\n> at itslearning.app.common.BaseApplication.attachBaseContext(BaseApplication.java:56)\n>\n> My base application context is attached like so (Because I use Roboelectic\n> for testing)\n>\n> protected void multidexInit() {\n>         try {\n>             MultiDex.install(this);\n>\n>         } catch (RuntimeException multiDexException) {\n>             // Work around Robolectric causing multi dex installation to fail, see\n>             // https://code.google.com/p/android/issues/detail?id=82007.\n>             boolean isUnderUnitTest;\n>\n>             try {\n>                 Class<?> robolectric = Class.forName(\"org.robolectric.Robolectric\");\n>                 isUnderUnitTest = (robolectric != null);\n>             } catch (ClassNotFoundException e) {\n>                 isUnderUnitTest = false;\n>             }\n>\n>             if (!isUnderUnitTest) {\n>                 // Re-throw if this does not seem to be triggered by Robolectric.\n>                 throw multiDexException;\n>             }\n>         }\n>     }\n>\n> —\n> You are receiving this because you modified the open/close state.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/chrisjenx/Calligraphy/issues/224#issuecomment-265384904>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABHRseZ17_JkHWf9ynHFJPEfa_8g2WBPks5rFmx3gaJpZM4GpSDW>\n> .\n>\n"}}
{"actor":{"display_login":"chrisjenx"}}