gpt4 book ai didi

android - 所有 com.android.support 库必须使用与版本 25.3.1 完全相同的版本规范

转载 作者:行者123 更新时间:2023-11-30 00:19:06 24 4
gpt4 key购买 nike

the error i am getting

这个问题已经回答了很多次了,但我仍然不知道如何解决它。我在 build.gradle compile 'com.android.support:appcompat-v7:25.3.1' 的这一行中遇到错误。我不知道我需要在我的 build.gradle 中添加什么才能让它工作。我有完整的依赖关系树,但我不知道我需要更改什么或如何更改

compile - Classpath for compiling the main sources.
+--- com.android.support:appcompat-v7:25.3.1
| +--- com.android.support:support-annotations:25.3.1
| +--- com.android.support:support-v4:25.3.1
| | +--- com.android.support:support-compat:25.3.1
| | | \--- com.android.support:support-annotations:25.3.1
| | +--- com.android.support:support-media-compat:25.3.1
| | | +--- com.android.support:support-annotations:25.3.1
| | | \--- com.android.support:support-compat:25.3.1 (*)
| | +--- com.android.support:support-core-utils:25.3.1
| | | +--- com.android.support:support-annotations:25.3.1
| | | \--- com.android.support:support-compat:25.3.1 (*)
| | +--- com.android.support:support-core-ui:25.3.1
| | | +--- com.android.support:support-annotations:25.3.1
| | | \--- com.android.support:support-compat:25.3.1 (*)
| | \--- com.android.support:support-fragment:25.3.1
| | +--- com.android.support:support-compat:25.3.1 (*)
| | +--- com.android.support:support-media-compat:25.3.1 (*)
| | +--- com.android.support:support-core-ui:25.3.1 (*)
| | \--- com.android.support:support-core-utils:25.3.1 (*)
| +--- com.android.support:support-vector-drawable:25.3.1
| | +--- com.android.support:support-annotations:25.3.1
| | \--- com.android.support:support-compat:25.3.1 (*)
| \--- com.android.support:animated-vector-drawable:25.3.1
| \--- com.android.support:support-vector-drawable:25.3.1 (*)
+--- com.android.support:support-v4:25.3.1 (*)
+--- com.google.firebase:firebase-database:10.2.0
| +--- com.google.android.gms:play-services-basement:10.2.0
| | \--- com.android.support:support-v4:24.0.0 -> 25.3.1 (*)
| +--- com.google.firebase:firebase-database-connection:10.2.0
| | +--- com.google.android.gms:play-services-basement:10.2.0 (*)
| | \--- com.google.firebase:firebase-common:10.2.0
| | +--- com.google.android.gms:play-services-basement:10.2.0 (*)
| | \--- com.google.android.gms:play-services-tasks:10.2.0
| | \--- com.google.android.gms:play-services-basement:10.2.0 (*)
| +--- com.google.firebase:firebase-common:10.2.0 (*)
| \--- com.google.android.gms:play-services-tasks:10.2.0 (*)
+--- com.sromku:simple-storage:1.2.0
+--- com.squareup.picasso:picasso:2.5.2
+--- com.android.support:recyclerview-v7:25.3.1
| +--- com.android.support:support-annotations:25.3.1
| +--- com.android.support:support-compat:25.3.1 (*)
| \--- com.android.support:support-core-ui:25.3.1 (*)
+--- at.blogc:expandabletextview:1.0.3
+--- it.neokree:MaterialTabs:0.11
| +--- com.github.markushi:android-ui:1.2
| \--- com.android.support:appcompat-v7:21.0.3 -> 25.3.1 (*)
+--- project :android-pdf-viewer
| \--- com.github.barteksc:pdfium-android:1.5.0
| \--- com.android.support:support-v4:21.0.3 -> 25.3.1 (*)
\--- com.google.firebase:firebase-core:10.2.0
\--- com.google.firebase:firebase-analytics:10.2.0
+--- com.google.android.gms:play-services-basement:10.2.0 (*)
+--- com.google.firebase:firebase-common:10.2.0 (*)
\--- com.google.firebase:firebase-analytics-impl:10.2.0
+--- com.google.android.gms:play-services-basement:10.2.0 (*)
+--- com.google.firebase:firebase-iid:10.2.0
| +--- com.google.android.gms:play-services-basement:10.2.0 (*)
| \--- com.google.firebase:firebase-common:10.2.0 (*)
+--- com.google.firebase:firebase-common:10.2.0 (*)
\--- com.google.android.gms:play-services-tasks:10.2.0 (*)

最佳答案

可能是你的pdf库的问题。

+--- project :android-pdf-viewer
| \--- com.github.barteksc:pdfium-android:1.5.0
| \--- com.android.support:support-v4:21.0.3 -> 25.3.1 (*)

它仍然使用支持库 v4 版本 21.0.3。

你可以试试把pdf库升级到1.7.0

\--- com.github.barteksc:pdfium-android:1.7.0
\--- com.android.support:support-v4:25.3.1 (*)

或者在build.gradle

中手动指定支持v4版本到 25.3.1
compile 'com.github.barteksc:pdfium-android:1.5.0'
compile 'com.android.support:support-v4:25.3.1'

关于android - 所有 com.android.support 库必须使用与版本 25.3.1 完全相同的版本规范,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46636642/

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