我只是在尝试使用 Android + Java。
我遵循本指南:http: //developer.android.com/training/basics/firstapp/index.html
一切照原样做。我只将“DisplayMessageActivity”类名更改为“DisplayMsgActivity”我已经更新了清单,以及对此类的所有引用,但我仍然收到 2 个错误:
-compile:
[javac] Compiling 4 source files to /home/juanchi/Dropbox/Dev/ArrayAppProject/bin/classes
[javac] /home/juanchi/Dropbox/Dev/ArrayAppProject/src/com/jnix/arrayapp/DisplayMsgActivity.java:7: duplicate class: DisplayMsgActivity
[javac] public class DisplayMsgActivity extends Activity {
[javac] ^
[javac] /home/juanchi/Dropbox/Dev/ArrayAppProject/src/com/jnix/arrayapp/ArrayAppActivity.java:20: cannot access com.jnix.arrayapp.DisplayMsgActivity
[javac] bad class file: RegularFileObject[/home/juanchi/Dropbox/Dev/ArrayAppProject/src/com/jnix/arrayapp/DisplayMsgActivity.java]
[javac] file does not contain class com.jnix.arrayapp.DisplayMsgActivity
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] Intent intent = new Intent(this, DisplayMsgActivity.class);
[javac] ^
[javac] 2 errors
构建失败 /home/juanchi/android-sdks/tools/ant/build.xml:680:执行此行时发生以下错误:/home/juanchi/android-sdks/tools/ant/build.xml:693:编译失败的; 有关详细信息,请参阅编译器错误输出。
总时间:5秒
有任何想法吗?