Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
개발지식창고/Android_Java 2018. 5. 23. 11:20The problem is, your project is missing the raster resources for pre-lollipop versions. Check, if you have file values/drawables.xml
. It seems like you copied some source, but not this file. The file contains references to raster images, that are used as alternatives to the vector images:
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<item name="ic_menu_camera" type="drawable">@android:drawable/ic_menu_camera</item>
<item name="ic_menu_gallery" type="drawable">@android:drawable/ic_menu_gallery</item>
<item name="ic_menu_slideshow" type="drawable">@android:drawable/ic_menu_slideshow</item>
<item name="ic_menu_manage" type="drawable">@android:drawable/ic_menu_manage</item>
<item name="ic_menu_share" type="drawable">@android:drawable/ic_menu_share</item>
<item name="ic_menu_send" type="drawable">@android:drawable/ic_menu_send</item>
</resources>
Android lollipop(5.0) 이하 버전에서는 values 폴더에 drawables.xml 파일에 위의 코드가 추가 되어야지
정상적으로 실행이 되어진다.
출처 : https://stackoverflow.com/questions/35673722/binary-xml-file-line-16-error-inflating-class-android-support-design-widget-na
'개발지식창고 > Android_Java' 카테고리의 다른 글
Android Activity Stack Intend (0) | 2018.06.11 |
---|---|
안드로이드 Font 모든 곳에 적용하기 (0) | 2018.06.06 |
Android Studio에서 SVN ignoe List 설정 (0) | 2017.08.25 |
Activity 에서 AppCompatActivity 로 전환 (0) | 2016.02.12 |
Android Studio 에 SVN 연동하기 (0) | 2016.01.28 |