내 응용 프로그램에 문제가 있습니다! build.gradle 동기화 및 오류없이,하지만 내가 응용 프로그램 오류를 실행하려면!오류 : 실행 ': 찾기 : transformResourcesWithMergeJavaResForDebug'에 대한 실행이 실패했습니다.
Error:Execution failed for task ':Find Me:transformResourcesWithMergeJavaResForDebug'.
com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE File1: C:\Users****\workspace\Find Me\libs\httpclient-4.5.1.jar
File2: C:\Users****\workspace\Find Me\libs\httpclient-cache-4.5.1.jar
File3: C:\Users****\workspace\Find Me\libs\httpclient-win-4.5.1.jar
File4: C:\Users****\workspace\Find Me\libs\httpcore-4.4.3.jar
와 build.gradle :
apply plugin: 'com.android.application'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':android-support-v7-appcompat')
compile project(':CircularImageView')
compile project(':FacebookSDK')
compile project(':google-play-services_lib')
compile project(':google-play-services_lib')
compile project(':FacebookSDK')
compile project(':android-support-v7-appcompat')
compile project(':CircularImageView')
}
android {
compileSdkVersion 23
buildToolsVersion "25.0.1"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}
이 grandle 파일에서 당신에게
감사합니다 노력하지만, 여전히 같은 오류! – user2003857
@ user2003857 컴파일 프로젝트를 사용하는 이유를 알려주시겠습니까? 이 파일들을 편집하고 있습니까? –
@ user2003857 내 편집 –