不幸的是,Android已经停止了这个应用程序
代码不幸的是,Android已经停止了这个应用程序,android,eclipse,android-emulator,Android,Eclipse,Android Emulator,代码 我正在做一个tamago/点击应用程序,只是为了学习一些功能 如果我在这里做错了什么,请帮我告诉我。 我是新的编码和制作android应用程序,所以我不知道为什么会发生这种情况,它以前工作过请发布您的logcat并阅读本文,我们更需要您的java代码和logcat,而不是您的布局xml。可能重复 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools=
我正在做一个tamago/点击应用程序,只是为了学习一些功能
如果我在这里做错了什么,请帮我告诉我。
我是新的编码和制作android应用程序,所以我不知道为什么会发生这种情况,它以前工作过请发布您的logcat并阅读本文,我们更需要您的java代码和logcat,而不是您的布局xml。可能重复
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="fill"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
tools:ignore="contentDescription" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="You Have Clicked 0 Times!"
android:textSize="20sp"
tools:ignore="HardcodedText" />
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:adjustViewBounds="false"
android:background="@style/AppTheme"
android:src="@drawable/cherry" />
</RelativeLayout>