改动布局XML文件后一运行就forced Close,请帮看看有什么问题?

ynduanlian 2012-09-18 06:14:55
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<Spinner
android:id="@+id/spinner1"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="查询" />
</LinearLayout>
<LinearLayout
android:id="@+id/adViewLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
</LinearLayout>
<WebView
android:id="@+id/webView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
...全文
114 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
AMinfo 2012-09-19
  • 打赏
  • 举报
回复
您如果用的是Eclipse+Java开发环境,那么有一个LogCat的工具条,里面会有详细的出错提示信息。或者,“forced Close”这个信息你是在哪里看到的呢?
今夜不谈风月 2012-09-19
  • 打赏
  • 举报
回复
楼主的代码我贴着试了下,能运行没问题。是不是你的环境有问题?
dong3560 2012-09-19
  • 打赏
  • 举报
回复
"forced Close" 应该是在手机上看到的。

把改动位置贴一下吧
ynduanlian 2012-09-18
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
你改动的是哪?Log信息也没有, 这叫人家怎么好帮你???
[/Quote]
我是新学者,不知道什么Log信息啊,哪里可以找到?
xn4545945 2012-09-18
  • 打赏
  • 举报
回复
你改动的是哪?Log信息也没有, 这叫人家怎么好帮你???
dong3560 2012-09-18
  • 打赏
  • 举报
回复
log信息贴一下吧

80,492

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧