Firebase Android App
>> Error1
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException
: Duplicate files copied in APK META-INF/services/javax.annotation.processing.Processor
File1: C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.jakewharton\butterknife\6.1.0\63735f48b82bcd24cdd33821342428252eb1ca5a\butterknife-6.1.0.jar
File2: C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.google.appengine\appengine-api-1.0-sdk\1.9.40\ff8bd58c4f1077255cbe28f16b3fff9542358207\appengine-api-1.0-sdk-1.9.40.jar
>> Method
https://github.com/JakeWharton/butterknife/issues/418
packagingOptions {
exclude 'META-INF/services/javax.annotation.processing.Processor' // butterknife
}
>> Error2
Error:The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at
https://developer.android.com/tools/building/multidex.html
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException
: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException
: com.android.ide.common.process.ProcessException: Return code 2 for dex process
>> Method :
https://developer.android.com/tools/building/multidex.html
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
...
minSdkVersion 14
targetSdkVersion 21
...
// Enabling multidex support.
multiDexEnabled true
}
...
}
dependencies {
compile 'com.android.support:multidex:1.0.0'
}
'IT Tech. > Trouble & Shooting' 카테고리의 다른 글
윈도우10, VPN One-Click 연결 만들기 (0) | 2016.12.08 |
---|---|
요구사항 정리 (0) | 2016.11.23 |
Duplicate files copied in APK META-INF/LICENSE (0) | 2016.10.14 |
윈도우 10 USB 부팅 디스크 만들기 (0) | 2016.10.11 |
Office Excel 2013에서 Excel 97-2003을 열때 빈화면으로 바뀌는 현상 (0) | 2016.07.14 |