{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/10587","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/10587/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/10587/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/10587/events","html_url":"https://github.com/facebook/react-native/issues/10587","id":185606214,"number":10587,"title":"Android app fails in the emulator after update to Android 25.0.0","user":{"login":"varungupta85","id":7475133,"avatar_url":"https://avatars.githubusercontent.com/u/7475133?v=3","gravatar_id":"","url":"https://api.github.com/users/varungupta85","html_url":"https://github.com/varungupta85","followers_url":"https://api.github.com/users/varungupta85/followers","following_url":"https://api.github.com/users/varungupta85/following{/other_user}","gists_url":"https://api.github.com/users/varungupta85/gists{/gist_id}","starred_url":"https://api.github.com/users/varungupta85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varungupta85/subscriptions","organizations_url":"https://api.github.com/users/varungupta85/orgs","repos_url":"https://api.github.com/users/varungupta85/repos","events_url":"https://api.github.com/users/varungupta85/events{/privacy}","received_events_url":"https://api.github.com/users/varungupta85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T08:38:36Z","updated_at":"2016-10-27T08:40:36Z","closed_at":null,"body":"### Description\r\n\r\nI updated the android appcompat library version to 25.0.0 because I wanted to use some APIs that were introduced in API level 24. After downloading and installing the required files, when I start the app the Genymotion Simulator, it keeps throwing the below exception and the attached screenshot appears in the app screen. So, the app isn't exactly crashed but I don't see the app launch screen.\r\n\r\nException:\r\n\r\n```\r\n10-27 13:45:08.550 7317-7317/com.galarmapp E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                             Process: com.galarmapp, PID: 7317\r\n                                                             android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@c51fa6 -- permission denied for this window type\r\n                                                                 at android.view.ViewRootImpl.setView(ViewRootImpl.java:591)\r\n                                                                 at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310)\r\n                                                                 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)\r\n                                                                 at android.app.Dialog.show(Dialog.java:319)\r\n                                                                 at com.facebook.react.devsupport.DevSupportManagerImpl.handleReloadJS(DevSupportManagerImpl.java:644)\r\n                                                                 at com.facebook.react.XReactInstanceManagerImpl$3$1.run(XReactInstanceManagerImpl.java:401)\r\n                                                                 at android.os.Handler.handleCallback(Handler.java:739)\r\n                                                                 at android.os.Handler.dispatchMessage(Handler.java:95)\r\n                                                                 at android.os.Looper.loop(Looper.java:148)\r\n                                                                 at android.app.ActivityThread.main(ActivityThread.java:5417)\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\r\nBelow screen shows up on the Simulator\r\n\r\n![screen shot 2016-10-27 at 1 57 10 pm](https://cloud.githubusercontent.com/assets/7475133/19760240/5a31095c-9c4e-11e6-92a7-36194cdabd9d.png)\r\n\r\n### Reproduction\r\n\r\nUpdate the android appcompat library version by updating the following the `android/app/build.gradle` file\r\n\r\n`buildToolsVersion \"25.0.0`\r\n`compile \"com.android.support:appcompat-v7:25.0.0`\r\n\r\nAdd following permissions to the `AndroidManifest.xml` file\r\n\r\n`<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>`\r\n`<uses-permission android:name=\"android.permission.READ_CONTACTS\" />`\r\n\r\nRun the app and observe the specified behavior\r\n\r\n### Additional Information\r\n\r\n* React Native version: 0.34.1\r\n* Platform: Android\r\n* Operating System: MacOS\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/256582060","html_url":"https://github.com/facebook/react-native/issues/10587#issuecomment-256582060","issue_url":"https://api.github.com/repos/facebook/react-native/issues/10587","id":256582060,"user":{"login":"leeight","id":104052,"avatar_url":"https://avatars.githubusercontent.com/u/104052?v=3","gravatar_id":"","url":"https://api.github.com/users/leeight","html_url":"https://github.com/leeight","followers_url":"https://api.github.com/users/leeight/followers","following_url":"https://api.github.com/users/leeight/following{/other_user}","gists_url":"https://api.github.com/users/leeight/gists{/gist_id}","starred_url":"https://api.github.com/users/leeight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeight/subscriptions","organizations_url":"https://api.github.com/users/leeight/orgs","repos_url":"https://api.github.com/users/leeight/repos","events_url":"https://api.github.com/users/leeight/events{/privacy}","received_events_url":"https://api.github.com/users/leeight/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T08:40:35Z","updated_at":"2016-10-27T08:40:35Z","body":"What's your targetSdkVersion? Please set it to `22`."}}
{"actor":{"display_login":"leeight"}}