{"action":"created","issue":{"url":"https://api.github.com/repos/Dimezis/BlurView/issues/31","repository_url":"https://api.github.com/repos/Dimezis/BlurView","labels_url":"https://api.github.com/repos/Dimezis/BlurView/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Dimezis/BlurView/issues/31/comments","events_url":"https://api.github.com/repos/Dimezis/BlurView/issues/31/events","html_url":"https://github.com/Dimezis/BlurView/issues/31","id":175371234,"number":31,"title":"BlurView crashes app on usage","user":{"login":"CHPraxis","id":9286455,"avatar_url":"https://avatars.githubusercontent.com/u/9286455?v=3","gravatar_id":"","url":"https://api.github.com/users/CHPraxis","html_url":"https://github.com/CHPraxis","followers_url":"https://api.github.com/users/CHPraxis/followers","following_url":"https://api.github.com/users/CHPraxis/following{/other_user}","gists_url":"https://api.github.com/users/CHPraxis/gists{/gist_id}","starred_url":"https://api.github.com/users/CHPraxis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CHPraxis/subscriptions","organizations_url":"https://api.github.com/users/CHPraxis/orgs","repos_url":"https://api.github.com/users/CHPraxis/repos","events_url":"https://api.github.com/users/CHPraxis/events{/privacy}","received_events_url":"https://api.github.com/users/CHPraxis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-06T22:54:20Z","updated_at":"2016-09-07T07:25:26Z","closed_at":null,"body":"Hello- I'm a bit stumped on this.  I can't get it to work.\r\n\r\nI'm creating a new activity that contains a blurview, with the intent of blurring the activity underneath.  My goal is to have this blurview take up the entire screen, so I have a full-screen blurred view, but for this test I didn't even make it full screen, and it still crashes.\r\n\r\nHere's my entire onCreate for my Activity:\r\n\r\n\r\n```\r\npublic class BlurWindowActivity extends AppCompatActivity {\r\n\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_blur_window);\r\n\r\n        BlurView blurView = (BlurView)findViewById(R.id.blurView);\r\n        final float radius = 16;\r\n\r\n\r\n\r\n        final View decorView = getWindow().getDecorView();\r\n        //Activity's root View. Can also be root View of your layout\r\n        final View rootView = decorView.findViewById(android.R.id.content);\r\n        //set background, if your root layout doesn't have one\r\n        final Drawable windowBackground = decorView.getBackground();\r\n\r\n        blurView.setupWith(rootView)\r\n                .windowBackground(windowBackground)\r\n                .blurAlgorithm(new RenderScriptBlur(this, true)) //Optional, enabled by default. User can have custom implementation\r\n                .blurRadius(radius);\r\n}\r\n```\r\n\r\n\r\nHere's my entire XML, \"activity_blur_window.xml\".\r\n\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<FrameLayout\r\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n             xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n             xmlns:tools=\"http://schemas.android.com/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\">\r\n    <eightbitlab.com.blurview.BlurView\r\n    android:id=\"@+id/blurView\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    app:blurOverlayColor=\"@color/md_blue_50\">\r\n    <TextView\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"50dp\"\r\n        android:text=\"@string/hello_blank_fragment\"/>\r\n\r\n</eightbitlab.com.blurview.BlurView>\r\n    </FrameLayout>\r\n```\r\n\r\n\r\nThe moment I instantiate this, it crashes. \r\n\r\nHere's the first part of the crash.\r\n\r\n> 09-06 15:45:24.185 6914-6914/com.myapp E/art: Failed to register native method android.support.v8.renderscript.RenderScript.rsnScriptForEach(JJI[JJ[B[I)V in /data/data/com.myapp/files/instant-run/dex/slice-renderscript-v8_723e22d4b50ba946bb48a8a78fc2e239fc80c235-classes.dex\r\n> 09-06 15:45:24.185 6914-6914/com.myapp  E/art: ----- class 'Landroid/support/v8/renderscript/RenderScript;' cl=0x12cb72e0 -----\r\n> 09-06 15:45:24.185 6914-6914/com.myapp  E/art:   objectSize=2330 (744 from super)\r\n> \r\n\r\n\r\nFrom my build.gradle:\r\n```\r\ndefaultConfig {\r\n        applicationId \"com.myapp\"\r\n        minSdkVersion 19\r\n        targetSdkVersion 23\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n        renderscriptTargetApi 24\r\n        renderscriptSupportModeEnabled true\r\n    }\r\n```\r\n\r\n\r\nWhat is causing this crash?"},"comment":{"url":"https://api.github.com/repos/Dimezis/BlurView/issues/comments/245197548","html_url":"https://github.com/Dimezis/BlurView/issues/31#issuecomment-245197548","issue_url":"https://api.github.com/repos/Dimezis/BlurView/issues/31","id":245197548,"user":{"login":"Dimezis","id":1433500,"avatar_url":"https://avatars.githubusercontent.com/u/1433500?v=3","gravatar_id":"","url":"https://api.github.com/users/Dimezis","html_url":"https://github.com/Dimezis","followers_url":"https://api.github.com/users/Dimezis/followers","following_url":"https://api.github.com/users/Dimezis/following{/other_user}","gists_url":"https://api.github.com/users/Dimezis/gists{/gist_id}","starred_url":"https://api.github.com/users/Dimezis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dimezis/subscriptions","organizations_url":"https://api.github.com/users/Dimezis/orgs","repos_url":"https://api.github.com/users/Dimezis/repos","events_url":"https://api.github.com/users/Dimezis/events{/privacy}","received_events_url":"https://api.github.com/users/Dimezis/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T07:25:26Z","updated_at":"2016-09-07T07:25:26Z","body":"Hey.\r\n\r\nDo you have the same issue with example project?\r\nWhich device are you using?\r\nWhat is your build tools version?\r\nTry to make renderscriptTargetApi, targetSdkVersion and build tools version the same."}}
{"actor":{"display_login":"Dimezis"}}