`
hehailin1986_163.com
  • 浏览: 154441 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

The application has stopped unexpectedly

阅读更多
   在学习Android的时候,偶尔会遇到异常。像要是遇到异常:“The application has stopped unexpectedly”的时候,首先去查看自己的代码是否有逻辑上的错误或者是漏洞,例如是不是使用了一个null对象。对象使用之前是否已经实例化。另外针对Android要特别注意,整个的程序中要关心的有三个部分:
业务逻辑--即逻辑上是否合理,代码部分是否正确。这个主要可以通过调试运行查看Log记录。
资源应用--Android的资源都放在了res文件下面,如Activity的布局一般都放在res/layout下面,并且一般是一个xml文件对应一个Activity。
AndroidManifest.xml--之前我在学习别人一个例子的时候就忽略了这个非常重要的东西,才导致了The application has stopped unexpectedly的发生。
分享到:
评论
3 楼 Menuz 2011-11-02  
logcat慢慢调,终会找到的。
2 楼 右转随缘 2011-07-28  
好抽象。。。
1 楼 gyy_username 2010-07-14  
汗,我的是在onCreate()里少了句super.onCreate(savedInstanceState);   

相关推荐

    android平台初级错误整理

    6. **The application has stopped unexpectedly** 这个错误通常是因为程序运行时遇到了未捕获的异常。排查方法包括: - 检查是否有未注册的Activity。 - 检查布局文件中的XML语法错误,如控件名称、宽度和高度...

    B4A初级教程

    - **“The application has stopped unexpectedly. Please try again.”(应用意外停止,请重试)**: 分析常见错误及其解决方法,确保应用稳定性。 - **UI设计与布局** - **Adding menu items(添加菜单项)**: ...

    Proxool-0.9.1

    SEVERE: The web application [/xxx] registered the JDBC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the...

    TongWeb常见问题处理

    然而,在日常运维过程中,开发者和运维人员可能会遇到一些常见的问题,如“this web application instance has been stopped already”的异常。本文将深入探讨这个问题的原因以及相应的解决方案,并延伸讨论在不重启...

    GNUPro Debugging Tools

    Examine what has happened when your program has stopped. Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another problem affecting...

    EPM Add-in_NET40

    office 2013 EPM插件,EPM add-in for Microsoft Office 是在由SAP BusinessObjects开发类别 Miscellaneous Shareware 软件。EPM系统插件add-in安装 - EPM 系统插件 Add-in 安装 说明: Add-in 为依附在 excel 上的一...

    Android代码-SimpleExplorer

    --- The development of this project has stopped --- Simple Explorer is a open source file explorer. License Copyright 2013 - 2015 Daniel F. This program is free software; you can redistribute it and/...

    Xftp 6免费版(个人使用)

    **Xftp 6免费版详解** Xftp 6是一款由Netsarang Computer Inc开发的专业级文件传输软件,尤其适用于需要在本地计算机和远程服务器之间进行频繁文件交换的用户。这款软件提供了简单易用的界面,支持多种协议,包括...

    PS-ReC SDK v1.1.0e

    Canon PowerShot SDK News ...Development of the PowerShot (PS-Rec) SDK has now stopped Only the Digital EOS SDK (ED-SDK) will continue to be developed and supported (including Vista support) next year

    BURNINTEST--硬件检测工具

    - Changed the mechanism to check for the required DirectX Direct3D as the previous method did not work on some system (some W2003 servers). - Enhanced the mechanism to report memory hardware errors ...

    安卓GPS位置模拟器工具APK,无源码

    安卓GPS位置模拟器工具源码 GPS模拟 位置欺骗 位置模拟 GPS_MORK 是一个Android 上GPS欺骗的工具。能够欺骗手机的GPS位置信息, 并且能够在地图上绘制多个位置坐标后设置一个时间,让他在选择的轨迹上运动。...

    c program desinger

    标题 "C程序设计者" 暗示了我们即将探讨的是关于C编程语言的知识点。C语言是一种强大的、低级的编程语言,被广泛用于系统编程、嵌入式开发、软件开发以及各种复杂的计算任务。它以其高效、灵活和可移植性著称。...

    Debugging with gdb Tenth Edition, for gdb version 8.0.50.20170611-git

    Examine what has happened, when your program has stopped. Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.

    (Weberdo) Play Service Info APK android app

    To fix "Google Play Services has stopped" errors, try opening the app info dialog and select "clear cache". If that does not work, try the "uninstall updates" option. Then download and re-install the ...

    DDD manual

    Examine what has happened, when your program has stopped. Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.

    ambari报错解决

    报错1: Using python /usr/bin/python ...REASON: Before starting Ambari Server, you must copy the MySQL JDBC driver JAR file to /usr/share/java and set property server.jdbc.driver.path=[path/to/c

    Win11家庭版安装Docker,解决engine stopped问题,安装hyper-v的命令

    Win11家庭版安装Docker,解决engine stopped问题,安装hyper-v的命令

    S7A驱动720版本

    - The driver could crash when the driver was stopped (either by hand or when the demo time was expired) and in the same moment the NetLink connection was disturbed. - Improvements on the seamless ...

    亿图图示专家(EDraw Max) v9.2 官方版.exe

    亿图图示专家(EDraw Max)是一款新的流程图、网络图绘制软件,新颖小巧,功能强大,可以很方便的绘制各种专业的业务流程图、组织结构图、商业图表、程序流程图,数据流程图,网络拓扑图等。 官方介绍: ...

    SINEC PNI Basic (Primary Network Initialization) Primary Setup

    《SINEC PNI Basic(Primary Network Initialization)基础设置详解》 SINEC PNI Basic,全称为Primary Network Initialization,是西门子自动化系统中一项关键的网络初始化工具,主要用于设置和配置工业网络环境。...

Global site tag (gtag.js) - Google Analytics