कर सकते हैं इस मुद्दे पर मैं जब मैं अपने Gradle फ़ाइल में रखसंसाधन प्रवेश ic_launcher पहले से परिभाषित
https://github.com/daimajia/AndroidImageSlider
डाल मेरी एंड्रॉयड स्टूडियो परियोजना पर इस लाइब्रेरी का उपयोग करने के लिए इसे इन त्रुटियों से पता चलता चाहते के साथ किसी भी शरीर plz मदद वह
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 -I C:\Users\Razi\AppData\Local\Android\android-studio\sdk\platforms\android-19\android.jar -M C:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\manifests\debug\AndroidManifest.xml -S C:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\res\all\debug -A C:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\assets\debug -m -J C:\Users\Razi\AndroidStudioProjects\AllahNames\app\build\source\r\debug -F C:\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 पहले से ही परिभाषित किया गया है! त्रुटि क्या हो सकती है? मैंने बिल्ड टूल्स को 19.1.0 में बदलने की कोशिश की है, लेकिन मुझे नहीं लगता कि यह एक मुद्दा है?
यहाँ मेरी build.gradle कोड
dependencies {
compile 'com.android.support:appcompat-v7:+'
compile 'com.daimajia.slider:library:[email protected]'
compile fileTree(dir: 'libs', include: ['*.jar'])
}
एह, आप से पूरी परियोजना पेड़ डाउनलोड करने के लिए की जरूरत नहीं है [https://github.com/daimajia/AndroidImageSlider](https://github.com/daimajia/AndroidImageSlider), सहित इसकी संसाधन फाइलें? – ChuongPham
मैं इसे डाउनलोड नहीं कर रहा हूं मैंने build.gradle में कोड की एक पंक्ति डाली है –
से ऊपर अपडेट किए गए प्रश्न को देखें, आप जो भी कर रहे हैं वह निर्माण स्क्रिप्ट में प्रासंगिक JAR शामिल है। संसाधन फाइलों के बारे में क्या? यही कारण है कि आपको त्रुटि मिल रही है। आपको परियोजना को कहीं भी डाउनलोड करने की आवश्यकता है, फिर अपनी परियोजना में पूरी परियोजना शामिल करें। संसाधन फ़ाइलों के बिना, ग्रैडल शिकायत करेगा। – ChuongPham