Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/184.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
导出android项目时出现Proguard错误_Android_Eclipse_Exception_Proguard_Osmdroid - Fatal编程技术网

导出android项目时出现Proguard错误

导出android项目时出现Proguard错误,android,eclipse,exception,proguard,osmdroid,Android,Eclipse,Exception,Proguard,Osmdroid,我试图从Eclipse中的project()导出android应用程序,问题是proguard返回了错误代码1。以前它会抛出多个警告,所以我使用“-dontwarn”命令。现在控制台显示: Proguard returned with error code 1. See console Note: there were 227 duplicate class definitions. You should check if you need to specify additional progr

我试图从Eclipse中的project()导出android应用程序,问题是proguard返回了错误代码1。以前它会抛出多个警告,所以我使用“-dontwarn”命令。现在控制台显示:

Proguard returned with error code 1. See console
Note: there were 227 duplicate class definitions.
You should check if you need to specify additional program jars.
Unexpected error while evaluating instruction:
    Class       = [com/actionbarsherlock/app/SherlockFragmentActivity]
    Method      = [getSherlock()Lcom/actionbarsherlock/ActionBarSherlock;]
    Instruction = [10] invokestatic #36
    Exception   = [java.lang.IllegalArgumentException] (Can't find common super class     of [android/app/Activity] (with 11 known super classes) and     [com/actionbarsherlock/app/SherlockFragmentActivity] (with 6 known super classes))
Unexpected error while performing partial evaluation:
    Class       = [com/actionbarsherlock/app/SherlockFragmentActivity]
    Method      = [getSherlock()Lcom/actionbarsherlock/ActionBarSherlock;]
    Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [android/app/Activity] (with 11 known super classes) and [com/actionbarsherlock/app/SherlockFragmentActivity] (with 6 known super classes))
java.lang.IllegalArgumentException: Can't find common super class of [android/app/Activity] (with 11 known super classes) and [com/actionbarsherlock/app/SherlockFragmentActivity] (with 6 known super classes)
...   
Proguard配置文件:

-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-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

-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 *;
}


#this part was added:
-dontwarn android.support.v4.app.Watson
-dontwarn com.actionbarsherlock.**
-dontwarn com.dropbox.client2.**
-dontwarn net.osmand.plus.activities.search.**
-dontwarn net.osmand.plus.activities.NavigatePointFragment
-dontwarn net.osmand.plus.activities.FavouritesListFragment
-dontwarn net.osmand.plus.activities.FavouritesListActivity
-dontwarn net.osmand.plus.activities.FavouritesListFragment$FavouritesAdapter
-优化过程5
-dontusemixedcaseclassnames
-DontskipnonPublicLibraryClass
-不要翻转
-冗长的
-优化!代码/简化/算术,!字段/*,!类/合并/*
-keep public class*扩展android.app.Activity
-keep public class*扩展android.app.Application
-keep public class*扩展了android.app.Service
-keep public class*扩展了android.content.BroadcastReceiver
-keep public class*扩展了android.content.ContentProvider
-keep public class*扩展了android.app.backup.BackupAgentHelper
-keep public class*扩展了android.preference.preference
-保持公共类com.android.vending.licensing.ILicensingService
-KeepClassSwithMemberNames类*{
本地人;
}
-keepclassswithmembers类*{
public(android.content.Context、android.util.AttributeSet);
}
-keepclassswithmembers类*{
public(android.content.Context,android.util.AttributeSet,int);
}
-keepclassmembers类*扩展了android.app.Activity{
public void*(android.view.view);
}
-keepclassmembers枚举*{
公共静态**[]值();
公共静态**valueOf(java.lang.String);
}
-keep class*实现android.os.Parcelable{
公开静态最终android.os.Parcelable$Creator*;
}
#增加了这一部分:
-dontwarn android.support.v4.app.Watson
-dontwarn com.actionbarsherlock**
-dontwarn com.dropbox.client2**
-dontwarn net.osmand.plus.activities.search**
-dontwarn net.osmand.plus.activities.NavigatePointFragment
-dontwarn net.osmand.plus.activities.FavoriteSListFragment
-dontwarn net.osmand.plus.activities.FavoriteSlativity
-dontwarn net.osmand.plus.activities.FavoriteSListFragment$FavoriteSadapter

我该怎么办?

尝试将您在项目中使用的任何其他库项目包含到project.properties.txt文件中。@keybee不幸没有