- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我创建了一个页面来显示关于我的应用程序的问题。我使用了滚动 TextView ,当我加载模拟器时出现一条错误消息,提示“不幸的是‘myapp’已停止工作”。该页面已添加到 list 中。提前谢谢你。
代码:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="katyloughrey5055.myapplication.QuestionsOnChapter7"
tools:showIn="@layout/activity_questions_on_chapter7">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Questions On Chapter 7 Differentiaion"
android:id="@+id/textView93"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Back"
android:id="@+id/Back5"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="44dp" />
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/scrollView"
android:layout_below="@+id/textView93"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignRight="@+id/textView93"
android:layout_alignEnd="@+id/textView93"
android:layout_above="@+id/Back5">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" 1. A curve has equation : x² + 2xy – 3y² + 16 = 0. Find the coordinates of the points on the curve where dy/dx=0 2. A curve C is described by the equation :3x² + 4y² – 2x + 6xy – 5 = 0. Find an equation of the tangent to C at the point (1, –2). 3. A curve C is described by the equation 3x² – 2y² + 2x – 3y + 5 = 0. Find an equation of the normal to C at the point (0, 1). 4. A curve has parametric equations:x=7cost–cos7t, y= 7sint– sin7t, π/8<t<π/3. (a) Find an expression for in terms of t. You need not simplify your answer. (b) Find an equation of the normal to the curve at the point where t=π/6. Give your answer in its simplest exact form. 5. A set of curves is given by the equation sinx+cosy=0.5. (a) Use implicit differentiation to find an expression for dy/dx For -π<x<π -π<y<π (b) find the coordinates of the points where dy/dx=0. 6. A curve is described by the equation x³-4y²=12xy 7. (a) Find the coordinates of the two points on the curve where x = –8. (b) Find the gradient of the curve at each of these points. 8.A curve has equation 3x² – y² + xy = 4. The points P and Q lie on the curve. The gradient of the tangent to the curve is 83 at P and at Q . (a) Use implicit differentiation to show that y – 2x = 0 at P and at Q. (b) Find the coordinates of P and Q. 9.A curve C has the equation y² – 3y = x³ + 8. (a) Find dy/dx in terms of x and y. (b) Hence find the gradient of C at the point where y=3. 10.A curve is described by the equation x² + 4xy + y² + 27 = 0 (a) Find dy/dx in terms of x and y. A point Q lies on the curve. The tangent to the curve at Q is parallel to the y-axis.Given that the x coordinate of Q is negative, (b) use your answer to part (a) to find the coordinates of Q.""
android:id="@+id/textView5" />
</ScrollView>
</RelativeLayout>
日志:
03-05 08:36:23.098 1921-1935/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0xacbcc8d0
03-05 08:36:23.185 243-269/? I/ActivityManager: Displayed katyloughrey5055.myapplication/.QuizOnChapter7: +1s221ms
03-05 08:37:03.573 1921-1935/? W/EGL_emulation: eglSurfaceAttrib not implemented
03-05 08:37:03.574 1921-1935/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xa44f2280, error=EGL_SUCCESS
03-05 08:37:03.781 1921-1935/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0xacbcc2b0
03-05 08:37:05.765 243-548/? I/ActivityManager: START u0 {cmp=katyloughrey5055.myapplication/.QuestionsOnChapter7} from uid 10061 on display 0
03-05 08:37:06.898 1921-1921/? D/AndroidRuntime: Shutting down VM
03-05 08:37:06.907 1921-1921/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: katyloughrey5055.myapplication, PID: 1921
java.lang.RuntimeException: Unable to start activity ComponentInfo{katyloughrey5055.myapplication/katyloughrey5055.myapplication.QuestionsOnChapter7}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
at katyloughrey5055.myapplication.QuestionsOnChapter7.onCreate(QuestionsOnChapter7.java:19)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
03-05 08:37:06.935 243-354/? W/ActivityManager: Force finishing activity katyloughrey5055.myapplication/.QuestionsOnChapter7
03-05 08:37:07.041 243-354/? W/ActivityManager: Force finishing activity katyloughrey5055.myapplication/.Chapter7
03-05 08:37:07.097 243-261/? W/art: Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12502 waiters=0 for 160ms
03-05 08:37:07.404 243-709/? I/OpenGLRenderer: Initialized EGL, version 1.4
03-05 08:37:07.434 243-709/? W/EGL_emulation: eglSurfaceAttrib not implemented
03-05 08:37:07.434 243-709/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xa15b4060, error=EGL_SUCCESS
03-05 08:37:07.542 243-261/? W/ActivityManager: Activity pause timeout for ActivityRecord{51ae1ae u0 katyloughrey5055.myapplication/.QuestionsOnChapter7 t550 f}
03-05 08:37:15.843 243-261/? W/ActivityManager: Launch timeout has expired, giving up wake lock!
03-05 08:37:17.097 243-261/? W/ActivityManager: Activity destroy timeout for ActivityRecord{4286281 u0 katyloughrey5055.myapplication/.Chapter7 t550 f}
03-05 08:37:25.986 243-261/? W/ActivityManager: Activity destroy timeout for ActivityRecord{51ae1ae u0 katyloughrey5055.myapplication/.QuestionsOnChapter7 t550 f}
03-05 08:38:02.063 1921-1921/? I/Process: Sending signal. PID: 1921 SIG: 9
03-05 08:38:02.139 243-709/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa0a93c90
03-05 08:38:02.146 243-709/? D/OpenGLRenderer: endAllStagingAnimators on 0xa11f2c00 (RippleDrawable) with handle 0x9e2fec10
03-05 08:38:02.249 243-715/? D/GraphicsStats: Buffer count: 3
03-05 08:38:02.251 243-715/? I/WindowState: WIN DEATH: Window{31d21d1 u0 katyloughrey5055.myapplication/katyloughrey5055.myapplication.StudentPage}
03-05 08:38:02.369 243-548/? I/ActivityManager: Process katyloughrey5055.myapplication (pid 1921) has died
03-05 08:38:02.425 243-269/? W/AppOps: Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
03-05 08:38:02.742 243-548/? I/ActivityManager: Start proc 2023:katyloughrey5055.myapplication/u0a61 for activity katyloughrey5055.myapplication/.StudentPage
03-05 08:38:02.820 2023-2023/? I/art: Not late-enabling -Xcheck:jni (already on)
03-05 08:38:02.821 2023-2023/? I/art: Late-enabling JIT
03-05 08:38:02.973 2023-2023/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000
03-05 08:38:03.497 2023-2023/? W/System: ClassLoader referenced unknown path: /data/app/katyloughrey5055.myapplication-1/lib/arm
03-05 08:38:04.120 59-275/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
最佳答案
您要么尝试使用错误的 ID 获取 Back5
,然后分配一个 OnClickListener
,要么您在获取按钮之前分配 OnClickListener
从 View 。
关于android - 当我加载模拟器时它崩溃并说 "Unfortunately ' myapp' 已停止工作”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35812350/
抱歉,如果不解释整个情况,我想不出更具描述性的标题。 我正在使用 IIS7 和 Tomcat7。我使用 GWT 创建了一个 Web 应用程序,将其打包成一个 war 文件并将其部署在 Tomcat 上
我知道有几个主题与此有关,但几天后我无法定位并解决这个问题。到目前为止我已经完成的步骤: 已安装tomcat 8.5.8 更改了/opt/tomcat/conf/server.xml 中的以下行
(顺便说一下,我正在使用 WebSphere 7) 我有一个带有基本身份验证和配置的安全约束的 Java 网络应用程序(如下所示)。 当我在 http://localhost:9080/myapp/
在 Windows 批处理文件或命令提示符中,调用 start mspaint 和 mspaint 之间有什么区别?它们似乎在做完全相同的事情。 另一个例子,所有 4 个案例似乎都在做同样的事情。如果
在构建我的 C# .NET 项目时,“MyApp.vshost.exe”文件与 Visual Studio 2010 下的“MyApp.exe”一起放置在发布站中。分发“MyApp.exe”时,我应该
我正在使用 Firebase Auth signInWithPopup(),这绝对很棒。但最初配置时,弹出窗口显示: Choose an account to continue to myApp-12
我将 war 文件放在共享驱动器上。我在我的 tomcat ...\conf\Catalina\localhost\myapp.xml 中设置了 docBase,如下所示: 当共享驱动器启动时,tom
身份验证后,asp.net 将我的用户重定向到 .../myapp/default.aspx 而不是 .../myapp/ 有什么办法可以解决这个问题吗?我认为在 url 上包含额外的 default
我知道这听起来可能很愚蠢,但我只是想知道如果我在我的已安装应用程序列表中输入“myapp”而不是“myapp.apps.myappConfig”有什么区别。它与模型有关还是什么? 问候 最佳答案 如果
来自 vshost(在 VS 版本中运行) array pure 00:00:02.9634819 1200000000 Basic: 00:00:04.1682663 来自独立程序(编译版本)
我有错误: BadRequestError: app "dev~myapp" cannot access app "s~myapp"'s data 这很相似,但是 the opposite way a
我已经为我的软件制作了安装程序(使用Inno Setup),最终安装在 C:\Program Files (x86)\MyApp\myapp.exe 像往常一样在 Windows 平台上运行,并且运行
我正在尝试运行 Ratchet 应用程序演示,但我无法执行该文件 这是我的文件结构 /var/www/src/MyApp/ /var/www/src/MyApp/chat.php /var/www/s
这是我的Flutter中凸起按钮的代码,如果我更换 void main()=> runApp(MaterialApp(home:MyApp())); 与 void main()=> runApp(My
就在几天前,我成功将 Ionic 应用程序上传到 Apple Store,而在这一天,我收到了验证警告: The app references non-public selectors in Payl
使用 Morph Labs 的 Appspace 部署站点意味着无法自动将“myapp.com”重定向到“www.myapp.com”(并且无法访问 .htacess)。 是否有 rails 内方式来
当我使用 Java 时,我需要输入类似java -?的命令如果用户在最后输入-?,为什么应用程序知道这个来回复输出?请告诉我识别-?的c代码 最佳答案 它们作为参数传递给 main(): #inclu
我试过使用 Environment.CommandLine 来检查可执行文件,但这没有用,它总是显示 dll 文件。关于如何知道 myapp.exe 文件是否用于运行应用程序或者是否使用 dotnet
我有一个问题,大约 2 天我无法解决。我分析了几乎所有关于这个错误的问题,但我无法处理它。 这是我的树: MyAppRoot -MyApp -libs -jar4.jar
最近我在 Linux Centos 上遇到 Apache Tomcat 6.0.35 的问题。我收到错误 - java.lang.UnsupportedClassVersionError: myApp
我是一名优秀的程序员,十分优秀!