本文停止更新。。。。

鼠标渣渣 ,点一次 成两次  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. android camera(三):camera V4L2 FIMC

    1. V4L2 1)简介 在Linux中,摄像头方面的标准化程度比较高,这个标准就是V4L2驱动程序,这也是业界比较公认的方式. V4L全称是Video for Linux,是Linux内核中标准的关 ...

  2. C++ 把输出结果写入文件/从文件中读取数据

    先包含头文文件 #include<fstream> 输出到文件 ofstream fout;  //声明一个输出流对象 fout.open("output.txt"); ...

  3. POJ 2502 Dijsktra

    POJ subway 600K 0MS 题意:乘坐地铁从家到学校,地铁40km/h 步行10km/h , 已知各个站点的x,y坐标,输入的信息每个列次用-,-1隔开,要求花费的时间最少 解决方案:把家 ...

  4. How Do I Deploy a Windows 8 App to Another Device for Testing?

    If your developing a new Windows 8 app and you want to test it on another device (e.g. Surface), you ...

  5. 一个NB的安全认证机制

    这是一个NB的安全认证机制. 1.这是一个安全认证机制 2.可以防止黑客截获到客户端发送的请求消息,避免了黑客冒充客户端向服务器发送操作的请求. 原理与步骤: 1.客户端与服务器端都会放着一份验证用的 ...

  6. hdoj 2087 剪花布条

    剪花布条 Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submis ...

  7. tensorflow 保存变量,

    代码: #!usr/bin/env python# coding:utf-8"""这个代码的作用是 通过 tensorflow 来计算 y = 0.3x + 0.1 的线 ...

  8. PHP汉字转拼音的两种方法+PHP提取汉字(中文)方法

    方法一:依据ASCII码转换,GB2312库对多音字也无能为力. GB2312标准共收录6763个汉字,不在范围内的汉字是无法转换.如:中国前总理朱镕基的"镕"字. GB2312中 ...

  9. RAID 2.0

      传统的RAID 1.0: 选几个硬盘—>做成RAID 5—>根据容量创建LUN—>映射给主机 1.重建时间随单盘容量的增大而迅速增加 2.性能上,一个LUN的读写只能在一个磁盘组 ...

  10. oracle学习----统计信息

    1.收集统计信息的方式 for all columns size skewonly BEGIN  DBMS_STATS.GATHER_TABLE_STATS(ownname          => ...