{"action":"created","issue":{"url":"https://api.github.com/repos/braintree/braintree_android/issues/78","repository_url":"https://api.github.com/repos/braintree/braintree_android","labels_url":"https://api.github.com/repos/braintree/braintree_android/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/braintree/braintree_android/issues/78/comments","events_url":"https://api.github.com/repos/braintree/braintree_android/issues/78/events","html_url":"https://github.com/braintree/braintree_android/issues/78","id":127648608,"number":78,"title":"Presenting the Drop-In-UI fails on Marshmallow","user":{"login":"max-pfeiffer","id":13573675,"avatar_url":"https://avatars.githubusercontent.com/u/13573675?v=3","gravatar_id":"","url":"https://api.github.com/users/max-pfeiffer","html_url":"https://github.com/max-pfeiffer","followers_url":"https://api.github.com/users/max-pfeiffer/followers","following_url":"https://api.github.com/users/max-pfeiffer/following{/other_user}","gists_url":"https://api.github.com/users/max-pfeiffer/gists{/gist_id}","starred_url":"https://api.github.com/users/max-pfeiffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-pfeiffer/subscriptions","organizations_url":"https://api.github.com/users/max-pfeiffer/orgs","repos_url":"https://api.github.com/users/max-pfeiffer/repos","events_url":"https://api.github.com/users/max-pfeiffer/events{/privacy}","received_events_url":"https://api.github.com/users/max-pfeiffer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-20T10:13:16Z","updated_at":"2016-02-09T16:36:55Z","closed_at":"2016-02-09T16:36:55Z","body":"Trying to present the Drop-In-UI on a device with API Level 23 results in the following error:\r\n```\r\nI/art: Rejecting re-init on previously-failed class java.lang.Class<com.braintreepayments.api.BraintreeFragment$9>\r\n```\r\nUsing devices with lower API Levels it works fine. It is probably caused by the [new system of permission handling on API Level 23](http://developer.android.com/training/permissions/requesting.html).\r\n\r\nTo reproduce: run the method to present the Drop-In-UI from the [tutorial](https://developers.braintreepayments.com/start/hello-client/android/v2) on a device with API Level 23:\r\n\r\n```\r\npublic void onBraintreeSubmit(View v) {\r\n  PaymentRequest paym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dmM2JneXcyYi90aHJlZV9kX3NlY3VyZS9sb29rdXAifSwicGF5cGFsRW5hYmxlZCI6dHJ1ZSwicGF5cGFsIjp7ImRpc3BsYXlOYW1lIjoiQWNtZSBXaWRnZXRzLCBMdGQuIChTYW5kYm94KSIsImNsaWVudElkIjpudWxsLCJwcml2YWN5VXJsIjoiaHR0cDovL2V4YW1wbGUuY29tL3BwIiwidXNlckFncmVlbWVudFVybCI6Imh0dHA6Ly9leGFtcGxlLmNvbS90b3MiLCJiYXNlVXJsIjoiaHR0cHM6Ly9hc3NldHMuYnJhaW50cmVlZ2F0ZXdheS5jb20iLCJhc3NldHNVcmwiOiJodHRwczovL2NoZWNrb3V0LnBheXBhbC5jb20iLCJkaXJlY3RCYXNlVXJsIjpudWxsLCJhbGxvd0h0dHAiOnRydWUsImVudmlyb25tZW50Tm9OZXR3b3JrIjp0cnVlLCJlbnZpcm9ubWVudCI6Im9mZmxpbmUiLCJ1bnZldHRlZE1lcmNoYW50IjpmYWxzZSwiYnJhaW50cmVlQ2xpZW50SWQiOiJtYXN0ZXJjbGllbnQzIiwiYmlsbGluZ0FncmVlbWVudHNFbmFibGVkIjp0cnVlLCJtZXJjaGFudEFjY291bnRJZCI6ImFjbWV3aWRnZXRzbHRkc2FuZGJveCIsImN1cnJlbmN5SXNvQ29kZSI6IlVTRCJ9LCJjb2luYmFzZUVuYWJsZWQiOmZhbHNlLCJtZXJjaGFudElkIjoiMzQ4cGs5Y2dmM2JneXcyYiIsInZlbm1vIjoib2ZmIn0=\");\r\n  startActivityForResult(paymentRequest.getIntent(this), REQUEST_CODE);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/braintree/braintree_android/issues/comments/181947153","html_url":"https://github.com/braintree/braintree_android/issues/78#issuecomment-181947153","issue_url":"https://api.github.com/repos/braintree/braintree_android/issues/78","id":181947153,"user":{"login":"lkorth","id":1163999,"avatar_url":"https://avatars.githubusercontent.com/u/1163999?v=3","gravatar_id":"","url":"https://api.github.com/users/lkorth","html_url":"https://github.com/lkorth","followers_url":"https://api.github.com/users/lkorth/followers","following_url":"https://api.github.com/users/lkorth/following{/other_user}","gists_url":"https://api.github.com/users/lkorth/gists{/gist_id}","starred_url":"https://api.github.com/users/lkorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkorth/subscriptions","organizations_url":"https://api.github.com/users/lkorth/orgs","repos_url":"https://api.github.com/users/lkorth/repos","events_url":"https://api.github.com/users/lkorth/events{/privacy}","received_events_url":"https://api.github.com/users/lkorth/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T16:36:55Z","updated_at":"2016-02-09T16:36:55Z","body":"@max-pfeiffer: Closing old issue. If you have more information feel free to comment."}}