资源条目ic_launcher已经定义

可以任何身体plz帮助他与这个问题我想在我的android studio项目上使用这个库

https://github.com/daimajia/AndroidImageSlider 

当我把它放在我的gradle文件中时,显示这些错误

 Information:Gradle tasks [:app:generateDebugSources] Information:res\drawable-mdpi-v4\ic_launcher.png:0: error: Resource entry ic_launcher is already defined. Information:res\drawable-mdpi\ic_launcher.png:0: Originally defined here. Information:res\drawable-xhdpi-v4\ic_launcher.png:0: error: Resource entry ic_launcher is already defined. Information:res\drawable-xhdpi\ic_launcher.png:0: Originally defined here. Information:res\drawable-xxhdpi-v4\ic_launcher.png:0: error: Resource entry ic_launcher is already defined. Information:res\drawable-xxhdpi\ic_launcher.png:0: Originally defined here. Information:1 error Information:0 warnings Information:See complete output in console Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Users\Razi\AppData\Local\Android\android-studio\sdk\build-tools\19.1.0\aapt.exe package -f --no-crunch -IC:\Users\Razi\AppData\Local\Android\android-studio\sdk\platforms\android-19\android.jar -MC:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\manifests\debug\AndroidManifest.xml -SC:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\res\all\debug -AC:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\assets\debug -m -JC:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\source\r\debug -FC:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\libs\app-debug.ap_ --debug-mode --custom-package com.ua.allahnames.app --output-text-symbols C:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\symbols\debug Error Code: 1 Output: res\drawable-mdpi-v4\ic_launcher.png:0: error: Resource entry ic_launcher is already defined. res\drawable-mdpi\ic_launcher.png:0: Originally defined here. res\drawable-xhdpi-v4\ic_launcher.png:0: error: Resource entry ic_launcher is already defined. res\drawable-xhdpi\ic_launcher.png:0: Originally defined here. res\drawable-xxhdpi-v4\ic_launcher.png:0: error: Resource entry ic_launcher is already defined. res\drawable-xxhdpi\ic_launcher.png:0: Originally defined here. 

ic_launcher已经定义好了! 什么可能是错误? 我试图将构build工具更改为19.1.0,但我不认为这是一个问题?

这里是我的build.gradle代码

 dependencies { compile 'com.android.support:appcompat-v7:+' compile 'com.daimajia.slider:library:1.0.1@aar' compile fileTree(dir: 'libs', include: ['*.jar']) } 

Solutions Collecting From Web of "资源条目ic_launcher已经定义"

我是这个图书馆的作者。 我很抱歉让你陷入麻烦

有一个解决scheme,你可以尝试一下:

重命名ic_launcher (在你的项目res/drawable-hdpires/drawable-mdpires/drawable-xhdpires/drawable-xxhdpi )。

只有当两个文件具有相同的名称时才会出现此问题。

您应该清理并重新构build您的项目。 为此,您需要使无效,然后重新启动Android Studio。

检查下面的图像。

在这里输入图像说明