亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Android實例化控件有什么特殊要求嗎??怎么程序加了這一段之后就閃退。。

Android實例化控件有什么特殊要求嗎??怎么程序加了這一段之后就閃退。。

望遠 2016-10-30 20:17:21
?????protected?void?onCreate(Bundle?savedInstanceState)?{ super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //實例化控件 btn_0=(Button)findViewById(R.id.btn_0); btn_1=(Button)findViewById(R.id.btn_1); btn_2=(Button)findViewById(R.id.btn_2); btn_3=(Button)findViewById(R.id.btn_3); btn_4=(Button)findViewById(R.id.btn_4); btn_5=(Button)findViewById(R.id.btn_5); btn_6=(Button)findViewById(R.id.btn_6); btn_7=(Button)findViewById(R.id.btn_7); btn_8=(Button)findViewById(R.id.btn_8); btn_9=(Button)findViewById(R.id.btn_9); btn_point=(Button)findViewById(R.id.btn_node); btn_equal=(Button)findViewById(R.id.btn_equal); btn_right=(Button)findViewById(R.id.btn_right); btn_left=(Button)findViewById(R.id.btn_left);
查看完整描述

2 回答

?
望遠

TA貢獻1017條經驗 獲得超1032個贊

5816d4ae0001135305000211.jpg

5816d4af0001b2b005000155.jpg

這是錯誤日志,請問這是什么問題?

查看完整回答
反對 回復 2016-10-31
?
王大厲

TA貢獻58條經驗 獲得超11個贊

是不是布局(看看命名)我有時候不小心用上了系統自帶的命名 ?運行就出錯

查看完整回答
反對 回復 2016-10-30
點擊展開后面1
  • 2 回答
  • 0 關注
  • 3918 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號