记录开发中常出现的错误

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(安卓)SDK下载和更新失败的解决方法!!!
  2. 彻底解决Android(安卓)应用方法数不能超过65K的问题
  3. Android(安卓)编译时注解
  4. Android纠正Activity横竖屏切换的生命周期的错误
  5. Gradle in Android(安卓)Studio: Failed to resolve third-party
  6. Eclipse中使用Ant打Android包报错解决方案 – Perhaps JAVA_HOME
  7. Android(安卓)Tips
  8. 升级Android(安卓)Studio 3.6.1后AndroidManifest报错android:sc
  9. Android(安卓)SDK Manager 更新失败的解决方法

随机推荐

  1. android 输入法弹出关闭与禁用
  2. Android(安卓)NDK 学习笔记
  3. Android手势处理框架-android gesture de
  4. Android(安卓)cannot resolve constructo
  5. 一个WP8样式的Android(安卓)ProgressBar
  6. Android(安卓)中调用 其他 app 的 url 协
  7. Android(安卓)获取系统时间
  8. 进度条ProgressBar
  9. Android(安卓)网页无法打开 net:ERR_UNKN
  10. android:实现退出确认框对话