我尝试使用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] ^
有没有人知道可能出现什么问题?