2. is not translated in

Eclipse > Preference > Android > Lint Error Checking的Correctness: Messages > MissingTranslate
将 Severity 从 Fetal 改为 Warming

1.cannot be resolved or is not a field

R.layout.main总是在layout提示错误。clean一下工程或者fix project properties 还是解决不了

原因可能是添加文件,比如xml文件或者资源文件时,系统自动添加了import android.R;

android.R是系统提供的资源,R是应用程序的资源。这时候只要删除 import android.R;这条语句就可以了。

2. 关联library

选中项目右键--->properties--->android--->修改library指引

3.库的引用 project.properties

android.library.reference.1=../library

4.下载SDK时,Read timed out Done. Nothing was installed.

Start the SDK manager as Administrator 或设置Tools--->options

.

5. Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.

6.Don't dump hprof file because it is not in monkey test

7.java.lang.IllegalMonitorStateException: object not locked by thread before wait()

二。

1.unbound prefix

明明是从网上down来的代码,copy上去了却报错,而且提示unbound prefix。

解决:删除重新写。自己也不知道哪儿出了错。

2.No resource identifier found for attribute 'source' in package 'android'

android:resource 写成了android:source

3.Attribute is missing the Android namespace prefix

前面少写了双引号,后面报错

4.Class requires API level 3 (current min is 1)

Right click on the project folder > Android tools > Clear Link Markers

5.IntentService测试 出错 newInstance failed: no <init>()

public class MyIntentService extends IntentService {

    private static final String TAG_STRING = "MyIntentService";
public MyIntentService(String name) {
//其实IntentService的name参数用于: Used to name the worker thread, important only for debugging.
super(name);
} @Override
protected void onHandleIntent(Intent intent) {
Log.v(TAG_STRING,"onHandleIntent sleep for 20 seconds");
Log.v(TAG_STRING, "onHandleIntent--Thread id : "+Thread.currentThread().getId());
try {
Thread.sleep(20000);
} catch (InterruptedException e) {
e.printStackTrace();
}
} }

修改为:

 public MyIntentService() {
super(TAG_STRING);
}

android 错误收集的更多相关文章

  1. Gradle DSL method found: ‘android()’错误

    Gradle DSL method found: ‘android()’错误 和上个错误一样这个也是因为在新版本的Gradle中android()方法已经废弃,但是要注意android()只是在整个项 ...

  2. samba配置中常见错误收集.txt

    在命令行输入命令: ~$ smbclient -L \\127.0.0.1按要求输入密码后,提示出错:session setup failed: NT_STATUS_LOGON_FAILURE 这是因 ...

  3. Android - 错误:&quot;No resource found that matches the given name android:Theme.Material&quot;

    Android - 错误:"No resource found that matches the given name android:Theme.Material" 本文地址:  ...

  4. SqlServer发布订阅错误收集

    原文:SqlServer发布订阅错误收集 目录 1. SqlServer发布订阅错误收集 1.1. Message:脚本对于表"dbo.table"失败. 1.1.1. 错误消息 ...

  5. ionic build Android错误记录未解决

    1.try itcordova -v cordova create testing cd testing cordova plugin add cordova-plugin-sim cordova p ...

  6. IIS发布站点错误收集(持续更新)

    本文主要收集IIS在发布站点过程中遇到的错误,并提供解决办法.并亲测可行.如果您也在使用IIS发布站点的过程中遇到了一些问题,欢迎留言提问. (1.) HTTP错误500.21-Internal Se ...

  7. Android错误

    1. [2016-09-16 14:25:45 - X_Card] Found 2 versions of android-support-v4.jar in the dependency list, ...

  8. Android错误:W/ResourceType(2411): No package identifier when getting value for resource number 0x

    报错信息: 07-04 11:14:43.064: W/ResourceType(2411): No package identifier when getting value for resourc ...

  9. android错误 Android NAND: nand_dev_load_disk_state,

    Android NAND: nand_dev_load_disk_state, 总是提示上面这个错误,我以为是内存分配不足呢,但是内存足够用也不行,后来在国外的网站上看到这个问题的解答,说是把用到的A ...

随机推荐

  1. c++ __int64

    C++的64位整数[原]by 赤兔 在做ACM题时,经常都会遇到一些比较大的整数.而常用的内置整数类型常常显得太小了:其中long 和 int 范围是[-2^31,2^31),即-2147483648 ...

  2. c++ double float 数值比较

    浮点数在内存中的存储机制和整型数不同,其有舍入误差,在计算机中用近似表示任意某个实数.具体的说,这个实数由一个整数或定点数(即尾数)乘以某个基数(计算机中通常是2)的整数次幂得到,这种表示方法类似于基 ...

  3. SharePoint Server 2013 通过IP无法访问站点

    通过IP访问SharePoint站点,出现“The Web application at http://172.21.19.132:1000 could not be found.... ”如下错误: ...

  4. UGUI 的多分辨率适配

    1.Canvas的属性配置 2.Canvas Scaler的属性配置 3.根据不同的屏幕的比例动态修改缩放基准 void Start () { float standard_width = 960f; ...

  5. html5--移动端视频video的android兼容,去除播放控件、全屏等

    html5 中的video 在手机浏览器中的总结所有页面播放时, 如果选择全屏播放, 播放画面将浮动到屏幕的最上层 IOS 手机   自动播放 播放界面浮动文字 播放时是否自动全屏 能否嵌入在页面中播 ...

  6. javascript--枚举算法实现

    <!doctype html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  7. GIS-004-Cesium版权信息隐藏

    .cesium-widget-credits { display: none; } .cesium-viewer .cesium-widget-credits { display: none; }

  8. 【RF库Collections测试】Copy Dictionary

    Name: Copy DictionarySource:Collections <test library>Arguments:[ dictionary ]Returns a copy o ...

  9. 上传文件提示IO Error

    百度查到的解决办法 http://www.wang0214.com/news/466.html 作者:深圳网站建设 原因: Asp.net中,上传文件的默认大小是4096 KB,也就是4M,不过你可以 ...

  10. android框架---->下沉文字Titanic的使用

    Titanic is a simple illusion obtained by applying an animated translation on the TextView TextPaint ...