本文停止更新。。。。

鼠标渣渣 ,点一次 成两次  R.java文件不幸中枪  被拖动修改。。。

最后application编译运行时

 

解决方案:project-clean

问题解决了。。

 

2  今天 不知怎么R文件居然没了,没了

度娘了下,解决方法有以下四种

1 xml文件有错误 ,修改好自己的xml文件

2 project-clean 一下

3 project -build一下

4 从别的工程中拷贝一份R.java 放入 修改下自己的xml文件 刷新下 再看

最后  clean 一下  build一下解决了

 

 

3  出现了 main cannot be resolved or is not a filed

那是在R.java文件丢失后自己import 了一个android.R 去掉就行了。。

4、 今天写Android 出现

04-06 22:01:16.398: E/AndroidRuntime(29902): java.lang.RuntimeException: Unable to start activity ComponentInfo{leemo.WIFIManager/leemo.WIFIManager.WIFIManagerActivity}: java.lang.NullPointerException

奶奶的  调试了 半天 眼都看花了   啥玩意也没找出来  无奈之下  度娘 了 然后 居然发现 clear 一下project就好了  。。只能呵了个呵了。

 

5、

当遇到“Your content mush have a listView whose id attribute is 'android.R.id.list'“异常时


一般在继承ListActivity时候,我们可以不指定xml的layout文件,但是当我们使用setContentView(xx)指定xml的layout时,确定在此xml文件中我们定义如下view

Xml代码 

<ListView  

     android:id="@android:id/list"  

     android:layout_width="match_parent"  

     android:layout_height="wrap_content" >  

</ListView>  

否则就会出现异常。 

原因:因为ListActivity中已经绑定了默认的ListView,如果我们重新给Activity绑定Layout时,需要保证已经存在的父类中的视图工作正常,所以需要加上上述视图

【原创】The Error in Android developing的更多相关文章

  1. Flutter - AAPT: error: resource android:attr/dialogCornerRadius not found.

    Launching lib\main.dart on Nokia X6 in debug mode... FAILURE: Build failed with an exception. * What ...

  2. Android Bug:Error:com.android.dex.DexException: Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$LayoutParams;

    项目编译通过,运行时出现异常: Error:com.android.dex.DexException: Multiple dex files define Landroid/support/desig ...

  3. 【原】“Error getting 'android:label' attribute”

    项目上线过程中遇到“Error getting 'android:label' attribute: attribute is not a string value”这个错误. 备忘下:是因为有act ...

  4. (原创)开发使用Android studio所遇到的一些问题总结

    1.Android studio下载链接地址(无需FQ):包括先行版和正式版(推荐使用正式版bug少) http://www.androiddevtools.cn/ 2.第一次安装避免成功先不要急着打 ...

  5. 【原创】菜鸟版Android 笔记2- Activity

    1. Activity介绍 Acitivity在安卓开发中非常重要,他很像Java桌面开发中的JFrame,在MVC模式中属于Controller,一般一个应用程序通常由多个松耦合关系的activit ...

  6. Installation error: INSTALL_FAILED_VERSION_DOWNGRADE Android

    我们在安装新的 APk 的时候.会出现 Installation error: INSTALL_FAILED_VERSION_DOWNGRADE 原因:  是由于 androidversionCode ...

  7. 【原创】如何用Android Studio断点安卓自带Service或Bind类型的Service

    很久以来,我一直想找一种方法来断点调试安卓系统自身的Service,或者bind类型的Service,比如我想看WifiManager里面的getWifiApConfiguration函数是如何实现的 ...

  8. 【原创】如何在Android Studio下调试原生安卓Framework层面的源代码

    1. Open Existing Android Studio Project. 2. 打开后, Projects -> Android 里面是空的. 这时候,需要选到 Projects-> ...

  9. Error in Android Studio - "Default Activity Not Found"

    Make sure you have specified the default activity in your AndroidManisfest.xml file. Within your def ...

随机推荐

  1. cat、cp命令

    cat是查看文件内容, cp –cp是连目录及件文件都拷贝 cp是拷贝文件 a.txt里的内容是, abc def ghi cat a.txt |grep –v ghi 得到结果, abc def h ...

  2. linux内核--页高速缓存

    页高速缓存,可以理解为对磁盘中的文件内容进行缓存的一种缓存策略,当然它不仅仅用于磁盘文件. 当对同一磁盘数据反复访问时,缓存数据就是非常必须的了.这就是buffer和 cache这两个概念中的buff ...

  3. PTA 06-图3 六度空间 (30分)

    "六度空间"理论又称作"六度分隔(Six Degrees of Separation)"理论.这个理论可以通俗地阐述为:"你和任何一个陌生人之间所间隔 ...

  4. Android中shape属性详解

    一.简单使用 刚开始,就先不讲一堆标签的意义及用法,先简单看看shape标签怎么用. 1.新建shape文件 首先在res/drawable文件夹下,新建一个文件,命名为:shape_radius.x ...

  5. centos中使用python遇到的几个问题

    用python搞了一个从excel中读取cobbler节点信息并加入cobbler中的脚本,运行的过程中出了不少问题,这里记录下来,方便日后查找! 一.yum install python,我通过这个 ...

  6. 【美妙的Python之二】Python初步

    美妙的Python之Python起步         简而言之: Python 是能你无限惊喜的语言,与众不同.           1.动态类型:         Python是一种动态类型语言,不 ...

  7. Delphi通过ICMP检测与远程主机连接

    { ping IP 地址(返回false or true) 2015-03-23} function PingHost(HostIP: String): Boolean; type PIPOption ...

  8. [PHP] csv to xml

    <?php error_reporting(E_ALL | E_STRICT); ini_set('display_errors', true); ini_set('auto_detect_li ...

  9. SDWebImage 原理及使用

    这个类库提供一个UIImageView类别以支持加载来自网络的远程图片.具有缓存管理.异步下载.同一个URL下载次数控制和优化等特征. SDWebImage 加载图片的流程 入口 setImageWi ...

  10. Java基础知识强化之IO流笔记31:转换流出现的原因和格式

    1. 由于字节流操作中文不是特别方便,所以Java就提供了转换流.  字符流 = 字节流 + 编码表 2. 编码表 由字符及其对应数值组成的一张表 常见的编码表: • ASCII/Unicode字符集 ...