Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 参考资料$NotFoundException:文件res/drawable-hdpi-v4/ic_bluetooth.xml_Android - Fatal编程技术网

Android 参考资料$NotFoundException:文件res/drawable-hdpi-v4/ic_bluetooth.xml

Android 参考资料$NotFoundException:文件res/drawable-hdpi-v4/ic_bluetooth.xml,android,Android,我的应用程序在api 23上运行良好 但是,在api低于19的情况下,当我尝试打开应用程序时,它会抛出一个错误,尽管我的主布局中没有图像视图: 04-15 15:46:37.196 25249-25249/io.github.swarajsaj.otpblogdemo E/AndroidRuntime:致命异常:主 java.lang.RuntimeException:无法启动活动 ComponentInfo{io.github.swarajsaj.otpblogdemo/io.github.s

我的应用程序在api 23上运行良好

但是,在api低于19的情况下,当我尝试打开应用程序时,它会抛出一个错误,尽管我的主布局中没有图像视图:

04-15 15:46:37.196 25249-25249/io.github.swarajsaj.otpblogdemo E/AndroidRuntime:致命异常:主 java.lang.RuntimeException:无法启动活动 ComponentInfo{io.github.swarajsaj.otpblogdemo/io.github.swarajsaj.INFINITY.bluetoothchat.MainActivity}: android.view.InflateException:二进制XML文件行#39:错误 正在膨胀的类android.widget.ImageView 在 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2255) 在 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2309) 在android.app.ActivityThread.access$700(ActivityThread.java:157) 在 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1289) 位于android.os.Handler.dispatchMessage(Handler.java:99) 位于android.os.Looper.loop(Looper.java:176) 位于android.app.ActivityThread.main(ActivityThread.java:5317) 位于java.lang.reflect.Method.Invokenactive(本机方法) 位于java.lang.reflect.Method.invoke(Method.java:511) 在 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) 位于com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) 在dalvik.system.NativeStart.main(本机方法) 原因:android.view.InflateException:二进制XML文件行#39: 膨胀类android.widget.ImageView时出错 在android.view.LayoutInflater.createView(LayoutInflater.java:619) 在 com.android.internal.policy.impl.PhoneLayoutFlater.onCreateView(PhoneLayoutFlater.java:56) 位于android.view.LayoutInflater.onCreateView(LayoutInflater.java:666) 在 createViewFromTag(LayoutInflater.java:691) 位于android.view.LayoutInflater.rInflate(LayoutInflater.java:752) 位于android.view.LayoutInflater.rInflate(LayoutInflater.java:760) 位于android.view.LayoutInflater.rInflate(LayoutInflater.java:760) 位于android.view.LayoutInflater.rInflate(LayoutInflater.java:760) 在android.view.LayoutInflater.inflate(LayoutInflater.java:495) 在android.view.LayoutInflater.inflate(LayoutInflater.java:397) 在 io.github.swarajsaj.INFINITY.bluetoothchat.BluetoothChatFragment.onCreateView(BluetoothChatFragment.java:354) 在 android.support.v4.app.Fragment.performCreateView(Fragment.java:2074) 在 FragmentManagerImpl.moveToState(FragmentManager.java:1104) 在 FragmentManagerImpl.moveToState(FragmentManager.java:1286) 在 android.support.v4.app.BackStackRecord.run(BackStackRecord.java:758) 在 FragmentManagerImpl.execPendingActions(FragmentManager.java:1671) 在 android.support.v4.app.FragmentController.ExecutPendingActions(FragmentController.java:388) 在 android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:619) 在 io.github.swarajsaj.INFINITY.common.activ
                                                                                      at android.content.res.Resources.loadDrawable(Resources.java:2842)
                                                                                      at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
                                                                                      at android.widget.ImageView.<init>(ImageView.java:126)
                                                                                      at android.widget.ImageView.<init>(ImageView.java:116)
                                                                                      at java.lang.reflect.Constructor.constructNative(Native Method) 
                                                                                      at java.lang.reflect.Constructor.newInstance(Constructor.java:417) 
                                                                                      at android.view.LayoutInflater.createView(LayoutInflater.java:593) 
                                                                                      at
                                                                                      at