2014-07-19 2 views
0

일시 중지 후 Android 앱을 계속 사용하기로 결정하고 이전 앱을 만들기로 결정했습니다. 이클립스 로그인 응용 프로그램을 내보내려고 때, 나는 오류를 folloing있어 :Dalvik 형식 변환이 오류 1과 함께 실패했습니다.

org.eclipse.core.runtime.CoreException: Conversion to Dalvik format failed with error 1 
at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:317) 
at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:313) 
at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access$0(ExportWizard.java:238) 
at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$1.run(ExportWizard.java:223) 
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) 
Caused by: com.android.ide.eclipse.adt.internal.build.DexException: Conversion to Dalvik format failed with error 1 
at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:825) 
at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:274) 
... 4 more 

은 가끔 (안 라이브러리에서 내 패키지에 모든 중복) Caused by: Proguard Error 1 Output: Note: there were 10 duplicate class definitions.이 오류가 발생합니다.

Poject build target 19 eclipse.buildId=M20130204-1200 java.version=1.6.0_45 java.vendor=Sun Microsystems Inc. ADT the latest version

Proguard.cfg

`-optimizationpasses 7 
-allowaccessmodification 
-dontusemixedcaseclassnames 
-dontskipnonpubliclibraryclasses 
-dontpreverify 
-verbose 
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 
-repackageclasses 'com.mypackage' 

-renamesourcefileattribute SourceFile  
-keepattributes SourceFile,LineNumberTable 

-keepattributes *Annotation* 
-keep public class * extends android.app.Activity 
-keep public class * extends android.app.Application 
-keep public class * extends android.app.Service 
-keep public class * extends android.content.BroadcastReceiver 
-keep public class * extends android.content.ContentProvider 
-keep public class * extends android.app.backup.BackupAgentHelper 
-keep public class * extends android.preference.Preference 
-keep public class com.android.vending.licensing.ILicensingService 
-keep class com.android.vending.billing.** 
-keep public class com.slidingmenu.lib.** {*;} 
-keep public class com.anjlab.android.iab.v3.** { *; } 

-keep class com.google.inject.** { *; } 
-keep class javax.inject.** { *; } 
-keep class javax.annotation.** { *; } 
-keep class roboguice.** { *; } 

# Action bar sherlock 
-keep class android.support.v4.app.** { *; } 
-keep interface android.support.v4.app.** { *; } 
-keep class com.actionbarsherlock.** { *; } 
-keep interface com.actionbarsherlock.** { *; } 

# Remove's all references to Log.v and Log.d 
-assumenosideeffects class android.util.Log { 
    public static *** d(...); 
    public static *** v(...); 
} 

-keepclasseswithmembernames class * { 
    native <methods>; 
} 

-keepclasseswithmembers class * { 
    public <init>(android.content.Context, android.util.AttributeSet); 
} 

-keepclasseswithmembers class * { 
    public <init>(android.content.Context, android.util.AttributeSet, int); 
} 

-keepclassmembers class * extends android.app.Activity { 
    public void *(android.view.View); 
} 

-keepclassmembers enum * { 
    public static **[] values(); 
    public static ** valueOf(java.lang.String); 
} 

-keep class * implements android.os.Parcelable { 
    public static final android.os.Parcelable$Creator *; 
} 

# The support library contains references to newer platform versions. 
# Don't warn about those in case this app is linking against an older 
# platform version. We know about them, and they are safe. 
-dontwarn android.support.** 

난 이미 (그들이 환경을 다시 설치 중) 모든 조언을 시도했지만 여전히 작동하지 않습니다.

누군가가 나를 도울 수 있다면 좋을 것입니다.

+0

이클립스에있는 모든 프로젝트를 지운 다음 이클립스를 다시 시작하십시오. Windows PC를 사용하는 경우 작업 관리자를 열고 adb.exe 프로세스를 종료하고 모든 adb 프로세스를 강제 종료하십시오. 그런 다음 다시 이클립스를 열고 ... 다시 을 시도하거나이 모든 물건이 다음 작동하지 않으면 것은 공식 웹 사이트 이제 이클립스 주노 될 이클립스와 심볼도 변경에서 최신 ADT 23.0.2 다운로드하여 ADT를 업데이트 . –

+0

@BabulPatel 조언의 첫 부분이 효과가있었습니다! 제발, 대답으로 써주세요, 최선으로 확인하겠습니다. 고마워요! – Sabre

답변

1

이클립스에있는 모든 프로젝트를 지운 다음 Windows PC를 사용하는 경우 이클립스를 다시 시작한 다음 작업 관리자를 열고 adb.exe 프로세스를 종료하고 모든 adb 프로세스를 강제 종료하십시오. 그런 다음 다시 이클립스를 열고 다시 시도하십시오 ... 아니면이 모든 것들이 작동하지 않으면 최신 ADT로 adt를 업데이트하십시오. 23.0.2 공식 웹 사이트에서 다운로드하기 이클립스는 Eclipse Juno가되고 심볼도 바뀝니다.

관련 문제