记录开发中常出现的错误

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)

更多相关文章

  1. Android系统自带样式(android:theme)(stephen830的博客)
  2. Android Material Design: NavigationView抽屉导航菜单(策滑功能
  3. 设置 listview 滚动条样式
  4. android switch 控件自定义样式不显示??
  5. android 菜单事件处理
  6. ProgressBar 样式
  7. 与spinner有关的样式

随机推荐

  1. Android 锁屏或者home键 tcp 断开
  2. Android(安卓)封装Okhttp3 + RxJava 工具
  3. Android(安卓)Studio 快捷键使用
  4. android 屏幕判断
  5. 自学Android 坑1
  6. Sqlite3 增删改查操作实例
  7. android 组件,xml布局中属性详解
  8. android 关闭弹出键盘
  9. Android单个模块编译
  10. Android安装apk文件,适配Android 7.0