노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

 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'
 }

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,