第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

點(diǎn)擊按鈕時(shí),程序自動(dòng)關(guān)閉,顯示錯(cuò)誤

點(diǎn)擊按鈕時(shí),程序自動(dòng)關(guān)閉,顯示錯(cuò)誤

牧羊人nacy 2019-04-25 15:19:34
在Android中設(shè)置一個(gè)按鈕,點(diǎn)擊按鈕跳轉(zhuǎn)至另一個(gè)頁(yè)面。編寫完成后,運(yùn)行不了,點(diǎn)擊該按鈕,程序自動(dòng)關(guān)閉。求求各位大神幫我看看哪里有問(wèn)題。1.這是main.java.里的相關(guān)代碼 @Override             public void onClick(View arg0) {                 Intent intent=new Intent(MainActivity.this,TwoActivity.class);                 startActivity(intent);             }2.這是two.Java里的代碼 package com.jikexueyuan.testqrcode; import android.app.Activity; import android.os.Bundle; public class TwoActivity extends Activity {  @Override protected void onCreate(Bundle saveInstanceState){      super.onCreate(saveInstanceState);      setContentView(R.layout.two);  } }3.這是main.xml的代碼 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/container"     android:orientation="vertical"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context="com.jikexueyuan.testqrcode.MainActivity"     tools:ignore="MergeRootFrame" > <Button         android:id="@+id/gen"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:layout_marginTop="36dp"        android:text="生成二維碼"        />     </LinearLayout>4.這是two.xml里的代碼 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" >     <Button         android:id="@+id/button1"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:text="名片" />     <Button         android:id="@+id/button2"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:text="短信" /></LinearLayout>
查看完整描述

4 回答

?
吃雞游戲

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超7個(gè)贊

檢查activity在AndroidManifest.xml中注冊(cè)了沒(méi)


查看完整回答
反對(duì) 回復(fù) 2019-05-14
?
暮色呼如

TA貢獻(xiàn)1853條經(jīng)驗(yàn) 獲得超9個(gè)贊

圖片上傳入口:

圖片說(shuō)明

android 閃退必定會(huì)有閃退日志,直接看 Caused by 后面錯(cuò)誤log,應(yīng)該就可以解決問(wèn)題了


查看完整回答
反對(duì) 回復(fù) 2019-05-14
?
一只斗牛犬

TA貢獻(xiàn)1784條經(jīng)驗(yàn) 獲得超2個(gè)贊

查看錯(cuò)誤報(bào)表,,,,針對(duì)修改


查看完整回答
反對(duì) 回復(fù) 2019-05-14
  • 4 回答
  • 0 關(guān)注
  • 489 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)