代码如下:
r.java
public static final int test_age=0x7f050000;异常如下:
07-22 05:52:28.450: ERROR/AndroidRuntime(770): android.content.res.Resources$NotFoundException: Resource ID #0x7f050000 type #0x12 is not validage.xml 如下:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/test_age"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText android:id="@+id/age"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="age"
android:numeric="integer"
/>
</LinearLayout>
调用的代码:View view = inflater.inflate(R.id.test_age, null);走到这儿就有错,不知道为什么,求解!!!
r.java
public static final int test_age=0x7f050000;异常如下:
07-22 05:52:28.450: ERROR/AndroidRuntime(770): android.content.res.Resources$NotFoundException: Resource ID #0x7f050000 type #0x12 is not validage.xml 如下:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/test_age"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText android:id="@+id/age"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="age"
android:numeric="integer"
/>
</LinearLayout>
调用的代码:View view = inflater.inflate(R.id.test_age, null);走到这儿就有错,不知道为什么,求解!!!
解决方案 »
- 求助,本人做一个视频监控的系统。想实现手指放大缩小视频的功能
- 跪求能用的带输入框(EditText)的AlertDialog
- Android内核下载
- Android TabHost 中的 Activity 重新加载问题
- 刚入门android,请问android开源到哪一个程度?
- 请大家推荐android系统开发板
- Android (&Tizen) Web App SDK 支持Tizen与Android Hybird/Web App相互转化
- 前端开发中蓝牙问题
- 安卓开发中文件的删除
- Android WebView为什么没有内存泄漏了
- 自定义的View放到ScrollView后不能显示,为什么?
- adnroid电池问题
r.java
public static final int test_age=0x7f050000;异常如下:
07-22 05:52:28.450: ERROR/AndroidRuntime(770): android.content.res.Resources$NotFoundException: Resource ID #0x7f050000 type #0x12 is not validage.xml 如下:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/test_age"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText android:id="@+id/age"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="age"
android:numeric="integer"
/>
</LinearLayout>
调用的代码:View view = inflater.inflate(R.id.test_age, null);很明显,你的Id不匹配导致异常NotFoundException
http://code.google.com/p/android/issues/detail?id=2726