Android:常见错误提示

记录开发中常出现的错误

1、遇到这样的错误时,应该立马想到是书写错误或语法错误,常见为android:name写成了name

Attribute is missing the Android namespace prefix

2、解决:菜单:project->clean。

Activity not started, its current task has been brought to the front

3、可能是title的冲突,解决:AndroidManifest.xml下的android:theme="@android:style/xx" 修改下其他样式

android.util.AndroidRuntimeException: You cannot combine custom titles with other title

 4、解决:Context改为自己的Activity.this

The method makeText(Context, CharSequence, int) in the type Toast is not applicable for the arguments (new View.OnClickListener(){}, String, int)

 

posted @ 2014-07-14 16:56  tinyphp  Views(535)  Comments(0Edit  收藏  举报