转换为Dalvik格式失败,错误1



暂停后,我决定继续使用Android应用程序,并决定构建我的旧应用程序。因此,当我试图在Eclipse中导出签名应用程序时,我得到以下错误:

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.**

我已经尝试了所有的建议(其中包括重新安装环境),但它仍然不起作用。

如果有人能帮我就太好了。

清理eclipse中存在的所有项目,然后重新启动eclipse(如果您使用的是windows PC),然后打开任务管理器和adb.exe结束该进程并强制完全停止所有adb进程。然后再打开日食,然后再试一次……或者如果这一切都不工作,那么更新你的adt最新的adt 23.0.2下载从官方网站现在Eclipse成为Eclipse Juno和符号也改变了

相关内容

  • 没有找到相关文章

最新更新