Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R.java自动更新问题 LinearLayout布局=(LinearLayout)rowView.findViewById(R.id.layout);_Java_Android_Android Layout_Android Activity_Android Resources - Fatal编程技术网

R.java自动更新问题 LinearLayout布局=(LinearLayout)rowView.findViewById(R.id.layout);

R.java自动更新问题 LinearLayout布局=(LinearLayout)rowView.findViewById(R.id.layout);,java,android,android-layout,android-activity,android-resources,Java,Android,Android Layout,Android Activity,Android Resources,我的R.java没有更新我真的需要一些帮助来更新我的R.java。 我已经尝试过清理或修复项目。您是否尝试将id命名为其他名称,而不是布局?您是否导入了正确的R类?很好的建议!它起作用了 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout" android:layout_width="match_parent" android:layout_hei

我的R.java没有更新我真的需要一些帮助来更新我的R.java。
我已经尝试过清理或修复项目。

您是否尝试将id命名为其他名称,而不是
布局
?您是否导入了正确的R类?很好的建议!它起作用了
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
 >
</LinearLayout>
LinearLayout layout = (LinearLayout) rowView.findViewById(R.id.layout);