看板 AndroidDev 關於我們 聯絡資訊
想請問我設定好button click 的switch 監聽按鍵後跳轉至其他頁面 但是案件按下去後 程式直接停止 進入除錯也不知道在那邊停止 請問是什麼問題 http://i.imgur.com/BVfbebI.jpg
這是code http://i.imgur.com/1QNwGiw.jpg
按下按鍵直接跳出 ----- Sent from JPTT on my Asus ASUS_Z017DA. -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.129.50.190 ※ 文章網址: https://www.ptt.cc/bbs/AndroidDev/M.1503717068.A.D34.html
StrikeBee: 你的錯誤訊息是什麼貼出來吧,裡面會寫原因 08/26 11:27
qwer911: 因為沒跳出任何中斷跟錯誤所以才疑惑 但一直出現source c 08/26 11:31
qwer911: ode does not match byte code 08/26 11:31
lazior: button定義看起來沒問題,猜想會不會是btnadd名稱不符合 08/26 11:38
lazior: 或是沒有宣告activity? 08/26 11:38
qwer911: https://goo.gl/Qe46cb 這個layout 可以載入 08/26 11:53
qwer911: 打錯不能載入 08/26 11:54
qwer911: https://goo.gl/LVAs2R 這個可以 08/26 11:54
lazior: http://www.jianshu.com/p/09093b846387 這原因嗎? 08/26 14:23
lazior: 重新編輯看看,rebuild project 08/26 14:24