在Gradle构建过程中出现以下错误:
错误:任务>’:app:transformClassesWithJarMergingForDebug’的执行失败。
com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:android
/ support / v4 / widget / ExploreByTouchHelper.class
我还检查了依赖关系:
release
+--- com.android.support:multidex:1.0.1
+--- com.google.android.gms:play-services:8.4.0
| +--- com.google.android.gms:play-services-ads:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-analytics:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-appindexing:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-appinvite:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-appstate:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-auth:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-cast:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | \--- com.android.support:mediarouter-v7:23.0.0
| | +--- LOCAL: internal_impl-23.0.0.jar
| | \--- com.android.support:appcompat-v7:23.2.1
| | +--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | +--- com.android.support:animated-vector-drawable:23.2.1
| | | \--- com.android.support:support-vector-drawable:23.2.1
| | | \--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | \--- com.android.support:support-vector-drawable:23.2.1
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-drive:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-fitness:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | \--- com.google.android.gms:play-services-location:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | \--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-games:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | \--- com.google.android.gms:play-services-drive:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-gcm:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | \--- com.google.android.gms:play-services-measurement:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-identity:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-location:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | \--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-measurement:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-nearby:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-panorama:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-plus:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-safetynet:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-vision:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.google.android.gms:play-services-wallet:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | +--- com.google.android.gms:play-services-identity:8.4.0
| | | \--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.1
| | | \--- LOCAL: internal_impl-23.2.1.jar
| | \--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| \--- com.google.android.gms:play-services-wearable:8.4.0
| \--- com.google.android.gms:play-services-base:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.2.1
| \--- LOCAL: internal_impl-23.2.1.jar
+--- com.android.support:appcompat-v7:23.2.1
| +--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| +--- com.android.support:animated-vector-drawable:23.2.1
| | \--- com.android.support:support-vector-drawable:23.2.1
| | \--- com.android.support:support-v4:23.2.1
| | \--- LOCAL: internal_impl-23.2.1.jar
| \--- com.android.support:support-vector-drawable:23.2.1
| \--- com.android.support:support-v4:23.2.1
| \--- LOCAL: internal_impl-23.2.1.jar
+--- com.mcxiaoke.volley:library-aar:1.0.0
+--- com.android.support:recyclerview-v7:24.2.0
| +--- com.android.support:support-compat:24.2.0
| | \--- LOCAL: internal_impl-24.2.0.jar
| \--- com.android.support:support-core-ui:24.2.0
| +--- LOCAL: internal_impl-24.2.0.jar
| \--- com.android.support:support-compat:24.2.0
| \--- LOCAL: internal_impl-24.2.0.jar
\--- com.android.support:cardview-v7:24.2.0
打开系统命令提示符/终端->转到项目文件夹路径(项目根目录)->执行以下命令:command:- gradlew clean
或./gradlew clean
确保所有gradle依赖项都具有相同的版本。->示例:-您的appcompat和recyclerview依赖项应具有相同的版本。
->将gradle依赖项更改为相同的版本,例如:-
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
->重建您的项目,它将正常工作。
这些是我在build.gradle中的依赖项 } 如果我重建项目,我得到这个错误。 到底是什么问题?我想使用appcompat-v7,因为我实现了导航抽屉。 我能做什么来解决这个问题。 编辑: 我编辑我的gradle如下: 但是我得到了一些其他的错误: 这是我完整的gradle文件:
我试图将各种依赖项添加到android maven项目中,特别是从文件中添加: 我一直在尝试遵循这里的说明,它告诉您使用: 但我得到了一个错误: 这是我完整的pom:
“Android/support/v4/view/viewPager:不支持Major.minor版本51.0” 使用Android V4支持视页。 我刚刚在谷歌上搜索了这个问题,并在“properties->java->installed JRES”下安装了JDK 1.7.0_71版本,在“properties->java->compiler”下安装了JDK 1.7版本 更新2:我刚刚将JDK和
我已经包括了android-support-v4。jar库使用“android:parentActivityName=”com。我的应用程序。实例它包含在“Android依赖项”和“引用库”中,但仍然不起作用- 错误:在包“android”中找不到属性“parentActivityName”的资源标识符 有什么建议吗?
使用说明: https://git.oschina.net/hailongqiu/AndroidTVWidget/wikis/AndroidTVWidget-use-manual 键盘使用说明: https://git.oschina.net/hailongqiu/AndroidTVWidget/wikis/Android-TV-%E5%A6%82%E4%BD%95%E4%BD%BF%E7%9
Android-Chat-Widget 是像微信、WhatsApp、Line一样的聊天控件。 Demo 如何使用? 1.在Layout中 <com.jialin.chat.MessageInputToolBox android:id="@+id/messageInputToolBox" android:layout_width="match_parent" android:lay