为什么我编写安卓音乐播放器时总出现cannot be resolved or is not a field这种progream,求大神指教 5

老是提示DescriptionResourcePathLocationTypeTheimportandroid.app.ActivityisneverusedMainAc... 老是提示
Description Resource Path Location Type
The import android.app.Activity is never used MainActivity.java /IMusic/src/com/example line 8 Java Problem
[I18N] Hardcoded string "音乐播放器", should use @string resource main.xml /IMusic/res/menu line 10 Android Lint Problem
main cannot be resolved or is not a field MainActivity.java /IMusic/src/com/example line 34 Java Problem
filename cannot be resolved or is not a field MainActivity.java /IMusic/src/com/example line 36 Java Problem
[I18N] Hardcoded string "打开一个activity", should use @string resource main.xml /IMusic/res/menu line 48 Android Lint Problem
playButton cannot be resolved or is not a field MainActivity.java /IMusic/src/com/example line 74 Java Problem
pauseButton cannot be resolved or is not a field MainActivity.java /IMusic/src/com/example line 84 Java Problem
[I18N] Hardcoded string "pugongying.mp3", should use @string resource main.xml /IMusic/res/menu line 15 Android Lint Problem
continues cannot be resolved or is not a field MainActivity.java /IMusic/src/com/example line 88 Java Problem
pauseButton cannot be resolved or is not a field MainActivity.java /IMusic/src/com/example line 93 Java Problem
resetButton cannot be resolved or is not a field MainActivity.java /IMusic/src/com/example line 97 Java Problem
stopButton cannot be resolved or is not a field MainActivity.java /IMusic/src/com/example line 106 Java Problem
[I18N] Hardcoded string "pugongying.mp3", should use @string resource activity_main.xml /IMusic/res/layout line 15 Android Lint Problem
[I18N] Hardcoded string "打开一个activity", should use @string resource activity_main.xml /IMusic/res/layout line 48 Android Lint Problem
The markup in the document following the root element must be well-formed. main.xml /IMusic/res/menu line 52 Android XML Format Problem
OtherActivity cannot be resolved to a type MainActivity.java /IMusic/src/com/example line 138 Java Problem
Don't include android.R here; use a fully qualified name for each usage instead MainActivity.java /IMusic/src/com/example line 3 Android Lint Problem
[I18N] Hardcoded string "音乐播放器", should use @string resource activity_main.xml /IMusic/res/layout line 10 Android Lint Problem
This text field does not specify an inputType or a hint activity_main.xml /IMusic/res/layout line 11 Android Lint Problem
Expected duration Toast.LENGTH_SHORT or Toast.LENGTH_LONG, a custom duration value is not supported MainActivity.java /IMusic/src/com/example line 81 Android Lint Problem
望大神帮忙啊
展开
 我来答
匿名用户
2015-04-06
展开全部
是不是 R 文件的包导错了 看了你导入的 android.R 的包
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
射冰蓝之魄
2016-09-29
知道答主
回答量:5
采纳率:0%
帮助的人:3895
展开全部
我也有这个问题,不知楼主是否解决了
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式