ANT发布错误

时间:2014-03-29 03:29:31

标签: java android ant apk

我尝试使用ant release

将我的应用编译为发布版本

我按照过程使用

生成了build.xml

$ANDROID_HOME/tools/android update project --name MyProject -p .

正确导出$ANDROID_HOME$JAVA_HOME

我使用有效的ant.properties文件和keystore

保存alias

在此之后,我尝试执行命令ant clean,该命令运行正常,并以BUILD SUCCESSFUL消息退出。

当我尝试执行ant release时,问题发生的时间。我收到了一堆javac编译错误

-compile:
    [javac] Compiling 89 source files /Users/kishu27/Developer/projects/MyProject/bin/classes
    [javac] /Users/kishu27/Developer/projects/MyProject/src/com/myproject/android/fragments/SettingsDetailFragment.java:20: cyclic inheritance involving com.myproject.android.fragments.SettingsDetailFragment
    [javac] public class SettingsDetailFragment extends SettingsFragment implements OnScrollListener {
    [javac]        ^
    [javac] /Users/kishu27/Developer/projects/MyProject/src/com/myproject/android/fragments/SettingsDetailFragment.java:22: modifier private not allowed here
    [javac]     private String cat;
    [javac]                    ^
    [javac] /Users/kishu27/Developer/projects/MyProject/src/com/myproject/android/fragments/SettingsFragment.java:28: modifier private static not allowed here
    [javac]     private static final String LOG_TAG = SettingsFragment.class.getSimpleName();
    [javac]                                 ^
    [javac] /Users/kishu27/Developer/projects/MyProject/src/com/myproject/android/fragments/SettingsFragment.java:29: modifier public static not allowed here
    [javac]     public static final String KEY_OPTIONS = LOG_TAG + ".Options";
    [javac]                                ^
    [javac] /Users/kishu27/Developer/projects/MyProject/src/com/myproject/android/fragments/SettingsFragment.java:30: modifier public static not allowed here
    [javac]     public static final String KEY_CAT = LOG_TAG + ".Cat";
    [javac]                                ^

有没有人知道可能出现什么问题?

0 个答案:

没有答案