{"action":"created","issue":{"url":"https://api.github.com/repos/JakeWharton/butterknife/issues/402","labels_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/402/comments","events_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/402/events","html_url":"https://github.com/JakeWharton/butterknife/issues/402","id":115214365,"number":402,"title":"IllegalStateException in sdk version 23","user":{"login":"hhuimie","id":4830177,"avatar_url":"https://avatars.githubusercontent.com/u/4830177?v=3","gravatar_id":"","url":"https://api.github.com/users/hhuimie","html_url":"https://github.com/hhuimie","followers_url":"https://api.github.com/users/hhuimie/followers","following_url":"https://api.github.com/users/hhuimie/following{/other_user}","gists_url":"https://api.github.com/users/hhuimie/gists{/gist_id}","starred_url":"https://api.github.com/users/hhuimie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhuimie/subscriptions","organizations_url":"https://api.github.com/users/hhuimie/orgs","repos_url":"https://api.github.com/users/hhuimie/repos","events_url":"https://api.github.com/users/hhuimie/events{/privacy}","received_events_url":"https://api.github.com/users/hhuimie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T05:54:53Z","updated_at":"2015-11-05T13:22:29Z","closed_at":null,"body":"i am running this project [ins](https://github.com/frogermcs/InstaMaterial/)\r\nwhen i'm using default configuration as follow:\r\n`'com.jakewharton:butterknife:6.1.0'`\r\n`compileSdkVersion 22`\r\n`buildToolsVersion \"23.0.2\"`\r\n`targetSdkVersion 22`\r\nthat work **fine**!\r\n\r\n**But** when i change the sdk version to `23` as follwo:\r\n`compileSdkVersion 23`\r\n`targetSdkVersion 23`\r\nthen i can not start the app, with a exception\r\n`java.lang.IllegalStateException: Required view 'ivMenuUserProfilePhoto' with ID 2131558582 for field 'ivMenuUserProfilePhoto' was not found. If this view is optional add '@Optional' annotation.`\r\n\r\nthose activities cause the exception are:\r\n[BaseActivity](https://github.com/frogermcs/InstaMaterial/blob/master/app/src/main/java/io/github/froger/instamaterial/ui/activity/BaseActivity.java)\r\n[ BaseDrawerActivity](https://github.com/frogermcs/InstaMaterial/blob/master/app/src/main/java/io/github/froger/instamaterial/ui/activity/BaseDrawerActivity.java)\r\n[MainActivity](https://github.com/frogermcs/InstaMaterial/blob/master/app/src/main/java/io/github/froger/instamaterial/ui/activity/MainActivity.java)\r\n\r\nit seems no matter the version of butterknife\r\ni had try to use version `7.1.0`\r\nstill useless\r\nam i do something wrong??\r\nthanks for helping!!"},"comment":{"url":"https://api.github.com/repos/JakeWharton/butterknife/issues/comments/154057942","html_url":"https://github.com/JakeWharton/butterknife/issues/402#issuecomment-154057942","issue_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/402","id":154057942,"user":{"login":"isuPatches","id":4986380,"avatar_url":"https://avatars.githubusercontent.com/u/4986380?v=3","gravatar_id":"","url":"https://api.github.com/users/isuPatches","html_url":"https://github.com/isuPatches","followers_url":"https://api.github.com/users/isuPatches/followers","following_url":"https://api.github.com/users/isuPatches/following{/other_user}","gists_url":"https://api.github.com/users/isuPatches/gists{/gist_id}","starred_url":"https://api.github.com/users/isuPatches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isuPatches/subscriptions","organizations_url":"https://api.github.com/users/isuPatches/orgs","repos_url":"https://api.github.com/users/isuPatches/repos","events_url":"https://api.github.com/users/isuPatches/events{/privacy}","received_events_url":"https://api.github.com/users/isuPatches/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T13:22:29Z","updated_at":"2015-11-05T13:22:29Z","body":"If you are using a navigation view, I've seen that issue as well.  For a workaround I removed the header layout from the Navigation view and the bind calls and then in onCreate I used inflateHeaderView and found the views based off that:\r\n\r\n```java\r\nView headerLayout = mBaseDrawerActivityNavigationView.inflateHeaderView(R.layout.base_drawer_activity_left_drawer_header_layout);\r\nmName = ButterKnife.findById(headerLayout, R.id.base_drawer_activity_left_drawer_name);\r\nmProfileImage = ButterKnife.findById(headerLayout, R.id.base_drawer_activity_left_drawer_profile_image);\r\n```"}}