- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我在使用设计库 23.1.0 时遇到问题
我尝试将设计库从 23.0.1 更新到 23.1.0,但现在我的应用程序在尝试膨胀我的 navigationView 时崩溃了。
如果我没记错的话,这两个版本之间的 navigationView 应该没有任何重大变化。
我已经尝试将我的代码与 cheesesquare 项目 ( https://github.com/chrisbanes/cheesesquare ) 进行比较但我找不到任何真正的区别。
如果需要更多信息,我会提供。
崩溃发生在我的 Activity on setContentView(R.layout.myLayout)
我的XML是这样的
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/toolbar" />
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
<android.support.design.widget.NavigationView
android:id="@+id/navigation"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/navigation_header"
app:menu="@menu/navigation_items" />
</android.support.v4.widget.DrawerLayout>
崩溃日志很长而且不完整:
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: FATAL EXCEPTION: main
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: Process: be.myApp, PID: 10085
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{be.myApp/be.myApp.home.SyndicHomeActivity}: android.view.InflateException: Binary XML file line #22: Binary XML file line #22: Error inflating class android.support.design.widget.NavigationView
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #22: Binary XML file line #22: Error inflating class android.support.design.widget.NavigationView
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:257)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at be.myApp.home.SyndicHomeActivity.onCreate(SyndicHomeActivity.java:39)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #22: Error inflating class android.support.design.widget.NavigationView
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:645)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:257)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at be.myApp.home.SyndicHomeActivity.onCreate(SyndicHomeActivity.java:39)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:619)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:257)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at be.myApp.home.SyndicHomeActivity.onCreate(SyndicHomeActivity.java:39)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class android.support.design.internal.NavigationMenuView
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.design.internal.NavigationMenuPresenter.getMenuView(NavigationMenuPresenter.java:97)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.design.widget.NavigationView.<init>(NavigationView.java:165)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.design.widget.NavigationView.<init>(NavigationView.java:94)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:619)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:257)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at be.myApp.home.SyndicHomeActivity.onCreate(SyndicHomeActivity.java:39)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.internal.NavigationMenuView
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:645)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.design.internal.NavigationMenuPresenter.getMenuView(NavigationMenuPresenter.java:97)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.design.widget.NavigationView.<init>(NavigationView.java:165)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.design.widget.NavigationView.<init>(NavigationView.java:94)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:619)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:257)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at be.myApp.home.SyndicHomeActivity.onCreate(SyndicHomeActivity.java:39)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:619)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.design.internal.NavigationMenuPresenter.getMenuView(NavigationMenuPresenter.java:97)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.design.widget.NavigationView.<init>(NavigationView.java:165)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.design.widget.NavigationView.<init>(NavigationView.java:94)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:619)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:257)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at be.myApp.home.SyndicHomeActivity.onCreate(SyndicHomeActivity.java:39)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: Caused by: java.lang.IllegalStateException: Binary XML file line #17: Error creating LayoutManager android.support.v7.widget.LinearLayoutManager
10-24 20:57:47.314 10085-10085/be.myApp E/AndroidRuntime: at android.support.v7.widget.RecyclerView.createLayoutMan
更新:
显然这是混淆器的问题。
我还没有找到需要什么规则。
最佳答案
所以我找到了解决方案。
我必须将以下规则添加到我的混淆文件中:
-keep class android.support.v7.** { *; }
-keep interface android.support.v7.** { *; }
注意:我没有收到任何来自混淆器的警告来指出这个问题。
关于Android 设计库 23.1.0 NavigationView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33322231/
关闭。这个问题需要更多focused .它目前不接受答案。 想改善这个问题吗?更新问题,使其仅关注一个问题 editing this post . 4年前关闭。 Improve this questi
.NET 框架:4.5.1 我在 Blend for visual studio 2015 中遇到一个奇怪的错误,我找不到它的来源。 如果我在 VS 中打开我的 WPF 解决方案,它会加载并运行良好。
我经常遇到这样的问题,与 Hierarchical RESTful URL design 非常相似 假设该服务仅提供用户上传文档。 POST, GET /accounts PUT, DELETE /a
在 Rails 应用程序中,我使用 devise 来管理我的用户,而我用来销毁 session 的链接不再有效。它正在工作,现在我添加了事件管理员,但没有。 我的链接是 :delete, :clas
我已经坚持了超过 24 小时,试图按照此处发布的其他解决方案进行操作,但我无法使其正常工作。我是 Rails 新手,需要帮助! 我想让我的/users/edit 页面正常工作,以便我可以简单地更改用户
Devise 在以下情况下不会使用户超时: 用户登录,关闭选项卡,然后在超时 + X 分钟内重新访问该 URL。用户仍处于登录状态。 如果选项卡已打开并且稍后刷新/单击,则超时可以正常工作。这意味着
我想使用这样的 slider 我希望该 slider 根据提供给它的值进行相应调整。到目前为止,我只能应用具有渐变效果的背景,但无法获得这种效果。请通过提供样式代码来帮助我。
您应该为每种方法创建一个请求/响应对象,还是应该为每个服务创建一个? 如果我在所有方法中使用它,我的服务请求对象中将只有 5 个不同的东西,因为我对几乎所有方法使用相同的输入。 响应对象将只有一个字典
我正在尝试在 REST 中对实体的附件进行建模。假设一个缺陷实体可以附加多个附件。每个附件都有描述和一些其他属性(上次修改时间、文件大小...)。附件本身是任何格式的文件(jpeg、doc ...)
我有以下表格: Blogs { BlogName } BlogPosts { BlogName, PostTitle } 博客文章同时建模一个实体和一个关系,根据 6nf(根据第三个宣言)这是无效的。
如果 A 类与 B、C 和 D 类中的每一个都有唯一的交互,那么交互的代码应该在 A 中还是在 B、C 和 D 中? 我正在编写一个小游戏,其中许多对象可以与其他对象进行独特的交互。例如,EMP点击
关于如何记住我与 Omniauth 一起工作似乎有些困惑。 根据这个wiki ,您需要在 OmniauthCallbacksController 中包含以下内容: remember_me(user)
设计问题: 使用 非线程安全 组件(集合,API,...)在/带有 多线程成分 ... 例子 : 组件 1 :多线程套接字服务器谁向消息处理程序发送消息... 组件 2 :非线程安全 消息处理程序 谁
我们目前正在设计一个 RESTful 应用程序。我们决定使用 XML 作为我们的基本表示。 我有以下关于在 XML 中设计/建模应用程序数据的问题。 在 XML 中进行数据建模的方法有哪些?从头开始然
我正在设计一个新的 XSD 来从业务合作伙伴那里获取积分信息。对于每笔交易,合作伙伴必须提供至少一种积分类型的积分值。我有以下几点:
设计支持多个版本的 API 的最佳方法是什么。我如何确保即使我的数据架构发生更改(微小更改),我的 api 的使用者也不会受到影响?任何引用架构、指南都非常有用。 最佳答案 Mark Nottingh
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 4 年前。 Improv
我想用 php 创建一个网站,其工作方式与 https://www.bitcoins.lc/ 相同。确实,就每个页面上具有相同布局但内容会随着您更改链接/页面而改变而言,我如何在 php 中使用lay
我有一个关于编写 Swing UI 的问题。如果我想制作一个带有某些选项的软件,例如在第一个框架上,我有三个按钮(新建、选项、退出)。 现在,如果用户单击新按钮,我想将框架中的整个内容更改为其他内容。
我正在尝试找出并学习将应用程序拥有的一堆Docker容器移至Kubernetes的模式和最佳实践。诸如Pod设计,服务,部署之类的东西。例如,我可以创建一个其中包含单个Web和应用程序容器的Pod,但
我是一名优秀的程序员,十分优秀!