在做android练习的时候,发现光盘中的demo能运行成功,而自己敲出来的代码就不能执行

一点击跳转就会提示TheapplicationAndroid_Project(processcom.arthurs)hasstoppedunexpectedly.Pleasetryagain

最后找到一篇文章才得以解决:

http://hi.baidu.com/ruiqing_2008/blog/item/5190b6facd9bd69e58ee904a.html

解决方法如下:

1.打开AndroidManifest.xml文件,打开第二个Application标签

2.在Application Nodes中添加一个Activity

3.在右侧Name出找到需要跳转到的类,保存,再运行即可

更多相关文章

  1. android(NDK+JNI)---Eclipse+CDT+gdb调试android ndk程序
  2. Android(安卓)触摸提示音
  3. [RK3399][Android7.1.1] WifiAp:开机默认打开wifi热点
  4. Ionic 运行报错No resource identifier found for attribute 'ap
  5. android 开机直接运行app并当做手机桌面
  6. Android(安卓)SDK Manager无法更新的解决
  7. Android出现java.lang.RuntimeException: Can't toast on a thre
  8. flutter-使用第三方库,编译和运行版本不一致问题 2
  9. Android(安卓)4.0.1 源码下载,编译和运行

随机推荐

  1. Android(安卓)抽屉侧滑效果
  2. Android中Http请求
  3. Android(安卓)studio 混合编程(一)
  4. android:windowSoftInputMode属性使用
  5. Android(安卓)短信数据库详细总结分析
  6. Android(安卓)中 PopupWindow的用法 汇总
  7. 【Android】MTK Android(安卓)编译命令
  8. Android(安卓)新手常见的10个误区(上)
  9. 类程序Log4j Android
  10. Android(安卓)Studio 如何导入.so文件/ja