我正在按照 Android 开发人员教程构建第一个应用程序。我完全按照它所说的一步一步完成了这个页面: https ://developer.android.com/training/basics/firstapp/starting-activity.html
在这里,我得到了许多与 Java 相关的错误:
Description Resource Path Location Type
View cannot be resolved to a type MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 24 Java Problem
Intent cannot be resolved to a type MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 25 Java Problem
Intent cannot be resolved to a type DisplayMessageActivity.java /MyFirstApp/src/com/example/myfirstapp line 16 Java Problem
TextView cannot be resolved to a type DisplayMessageActivity.java /MyFirstApp/src/com/example/myfirstapp line 20 Java Problem
TextView cannot be resolved to a type DisplayMessageActivity.java /MyFirstApp/src/com/example/myfirstapp line 20 Java Problem
Intent cannot be resolved to a type MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 25 Java Problem
EditText cannot be resolved to a type MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 26 Java Problem
EditText cannot be resolved to a type MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 26 Java Problem
edit_message cannot be resolved or is not a field MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 26 Java Problem
请问有什么帮助吗?
编辑:@pawalzieba 好的,现在我只收到以下 3 个错误:
Description Resource Path Location Type
edit_message cannot be resolved or is not a field MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 29 Java Problem
error: Error: No resource found that matches the given name (at 'hint' with value '@string/edit_message'). activity_main.xml /MyFirstApp/res/layout line 6 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'text' with value '@string/button_send'). activity_main.xml /MyFirstApp/res/layout line 11 Android AAPT Problem