{"action":"created","issue":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1123","repository_url":"https://api.github.com/repos/afollestad/material-dialogs","labels_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1123/labels{/name}","comments_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1123/comments","events_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1123/events","html_url":"https://github.com/afollestad/material-dialogs/issues/1123","id":164589993,"number":1123,"title":"Error: java.lang.NoSuchFieldError","user":{"login":"nabeelpkl","id":2047178,"avatar_url":"https://avatars.githubusercontent.com/u/2047178?v=3","gravatar_id":"","url":"https://api.github.com/users/nabeelpkl","html_url":"https://github.com/nabeelpkl","followers_url":"https://api.github.com/users/nabeelpkl/followers","following_url":"https://api.github.com/users/nabeelpkl/following{/other_user}","gists_url":"https://api.github.com/users/nabeelpkl/gists{/gist_id}","starred_url":"https://api.github.com/users/nabeelpkl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabeelpkl/subscriptions","organizations_url":"https://api.github.com/users/nabeelpkl/orgs","repos_url":"https://api.github.com/users/nabeelpkl/repos","events_url":"https://api.github.com/users/nabeelpkl/events{/privacy}","received_events_url":"https://api.github.com/users/nabeelpkl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/afollestad/material-dialogs/labels/question","name":"question","color":"673AB7"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-08T18:33:41Z","updated_at":"2016-09-11T20:39:17Z","closed_at":"2016-07-18T20:02:36Z","body":" - Material Dialogs version: `0.8.6.1`\r\n - Device OS version: `6.0.1`\r\n - Device Manufacturer: `OnePlus`\r\n - Device Name: `OnePlus Two`\r\n\r\nI have used material-dialogs version '0.7.3.1' library in my old app. Now I am using latest version '0.8.6.1'. and I am getting the following error in my Android Studio\r\n\r\n```\r\n07-08 20:47:05.702 434-434/<PACKAGE NAME> E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                                         Process: <PACKAGE NAME>, PID: 434\r\n                                                                         java.lang.NoSuchFieldError: No static field colorBackgroundFloating of type I in class Lcom/afollestad/materialdialogs/R$attr; or its superclasses (declaration of 'com.afollestad.materialdialogs.R$attr' appears in /data/app/**<PACKAGE NAME>**-1/base.apk)\r\n                                                                             at com.afollestad.materialdialogs.DialogInit.init(DialogInit.java:80)\r\n                                                                             at com.afollestad.materialdialogs.MaterialDialog.<init>(MaterialDialog.java:96)\r\n                                                                             at com.afollestad.materialdialogs.MaterialDialog$Builder.build(MaterialDialog.java:1335)\r\n                                                                             at <PACKAGE NAME>.dialog.AlertBuilder.badResponseDialog(AlertBuilder.java:254)\r\n                                                                             at <PACKAGE NAME>.dialog.AlertBuilder.create(AlertBuilder.java:62)\r\n                                                                             at <PACKAGE NAME>.RegistrationBaseActivity.handleMessage(RegistrationBaseActivity.java:338)\r\n                                                                             at <PACKAGE NAME>.RegistrationBaseActivity$IncomingHandler.handleMessage(RegistrationBaseActivity.java:107)\r\n                                                                             at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                             at android.os.Looper.loop(Looper.java:152)\r\n                                                                             at android.app.ActivityThread.main(ActivityThread.java:5497)\r\n                                                                             at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n                                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n```\r\n  In positions in the code given below. \r\n \r\n```\r\n  private MaterialDialog badResponseDialog() {\r\n        String message = getBundledDialogContent();\r\n        if (TextUtils.isEmpty(message)) {\r\n            message = \"Oops! There seems to be a technical problem. Please, try again later.\";\r\n        }\r\n\r\n        return getThemedMaterialDialogBuilder(context, R.drawable.ic_comment_alert_outline_grey600_36dp, true)\r\n                .title(\"Request Failed\")\r\n                .content(message)\r\n                .positiveText(\"OK\")\r\n                /*.callback(new MaterialDialog.ButtonCallback() {\r\n                    @Override\r\n                    public void onPositive(MaterialDialog dialog) {\r\n                        super.onPositive(dialog);\r\n                        dialog.dismiss();\r\n                    }\r\n                })*/\r\n            .onPositive(new MaterialDialog.SingleButtonCallback() {\r\n              @Override\r\n              public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {\r\n                dialog.dismiss();\r\n              }\r\n            })\r\n            .build();\r\n    }\r\n\r\n private MaterialDialog.Builder getThemedMaterialDialogBuilder(Context context, int drawableResId, boolean isCancelable) {\r\n        if (mDialogBuilder == null)\r\n            mDialogBuilder = new MaterialDialog.Builder(context)\r\n                    .titleColorRes(R.color.fed_blue)\r\n                    .positiveColorRes(R.color.fed_blue)\r\n                    .negativeColorRes(R.color.bg_qr);\r\n\r\n        Drawable icon = context.getResources().getDrawable(drawableResId);\r\n        if (icon != null)\r\n            mDialogBuilder.icon(icon);\r\n\r\n        mDialogBuilder.cancelable(isCancelable);\r\n\r\n        return mDialogBuilder;\r\n    }\r\n```\r\n\r\nPlease help."},"comment":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/comments/246203082","html_url":"https://github.com/afollestad/material-dialogs/issues/1123#issuecomment-246203082","issue_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1123","id":246203082,"user":{"login":"afollestad","id":1820165,"avatar_url":"https://avatars.githubusercontent.com/u/1820165?v=3","gravatar_id":"","url":"https://api.github.com/users/afollestad","html_url":"https://github.com/afollestad","followers_url":"https://api.github.com/users/afollestad/followers","following_url":"https://api.github.com/users/afollestad/following{/other_user}","gists_url":"https://api.github.com/users/afollestad/gists{/gist_id}","starred_url":"https://api.github.com/users/afollestad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afollestad/subscriptions","organizations_url":"https://api.github.com/users/afollestad/orgs","repos_url":"https://api.github.com/users/afollestad/repos","events_url":"https://api.github.com/users/afollestad/events{/privacy}","received_events_url":"https://api.github.com/users/afollestad/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T20:39:17Z","updated_at":"2016-09-11T20:39:17Z","body":"@Tukajo why not look? This is open source, after all.\r\n\r\nhttps://github.com/afollestad/material-dialogs/blob/master/core/build.gradle"}}
{"actor":{"display_login":"afollestad"}}