gpt4 book ai didi

java - 没有静态方法 combineMeasuredStates(II) 实现底部导航 View 时

转载 作者:太空宇宙 更新时间:2023-11-03 10:59:41 25 4
gpt4 key购买 nike

我正在尝试实现一个 Bottom Navigation View 但每次我运行项目 logcat 都会出现此错误

java.lang.NoSuchMethodError: No static method combineMeasuredStates(II)I in class Landroid/support/v7/widget/ViewUtils; or its super classes (declaration of 'android.support.v7.widget.ViewUtils' appears in /data/app/lungu.aubry.quick-2/split_lib_dependencies_apk.apk:classes28.dex)
at android.support.design.internal.BaselineLayout.onMeasure(BaselineLayout.java:69)
at android.view.View.measure(View.java:17624)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5552)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
at android.view.View.measure(View.java:17624)
at android.support.design.internal.BottomNavigationMenuView.onMeasure(BottomNavigationMenuView.java:143)
at android.view.View.measure(View.java:17624)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5552)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
at android.view.View.measure(View.java:17624)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5552)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1438)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:724)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:615)

我的顶层gradle文件如下:

compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.code.gson:gson:2.7'
compile 'com.android.volley:volley:1.0.0'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:palette-v7:25.3.1'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.jakewharton:butterknife:8.4.0'
compile 'com.satsuware.lib:usefulviews:2.3.6'
compile 'com.squareup.retrofit2:retrofit:2.2.0'
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.afollestad.material-dialogs:core:0.9.4.7'
compile 'com.afollestad.material-dialogs:commons:0.9.4.7'
apt 'com.jakewharton:butterknife-compiler:8.4.0'

应用程序本身没有给我任何问题

最佳答案

添加您的 build.gradel 代码以获得更多帮助,我们不能仅通过日志帮助您,而是通过您的所有代码帮助您。

但是我认为构建工具版本和 SDK 版本必须相同像 (25.X.X)

您可以了解更多信息:java.lang.NoSuchMethodError: No static method combineMeasuredStates(II)I in class

关于java - 没有静态方法 combineMeasuredStates(II) 实现底部导航 View 时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47190194/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com