不幸的是,(APP)已停止 - 一个新的/默认的应用程序在AVD / Eclipse中的错误信息 [英] Unfortunately, (app) has stopped - error message in AVD/Eclipse on a new/default application

查看:145
本文介绍了不幸的是,(APP)已停止 - 一个新的/默认的应用程序在AVD / Eclipse中的错误信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我安装在Windows 7(64位)的ADT / Eclipse的包。每当我尝试运行在模拟器上的应用程序,它只是说:不幸的是,应用程序已经停止。我搜索这个错误,通过这个网站和其他修复负荷读,但他们都似乎具有了code的特定位的麻烦。

I recently installed the ADT/Eclipse bundle on Windows 7 (64 bit). Whenever I try to run an application on the emulator it just says "Unfortunately, app has stopped". I've searched this error and read through loads of fixes on this site and others, but all of them seemed to be having trouble with a particular bit of code.

此错误是发生无我进行任何更改到code。我已经试过了多个项目,有不同的最小和目标软件开发工具包,以获得相同的结果。

This error is happening without me making any changes to the code. I've tried it with multiple projects, with different minimum and target SDKs, to get the same result.

下面是问题的我logcat的日志。

Here is my logcat log of the problem.

07-09 11:24:44.100: D/AndroidRuntime(832): Shutting down VM
07-09 11:24:44.100: W/dalvikvm(832): threadid=1: thread exiting with uncaught exception (group=0xb2ac2d70)
07-09 11:24:44.130: E/AndroidRuntime(832): FATAL EXCEPTION: main
07-09 11:24:44.130: E/AndroidRuntime(832): Process: com.jp, PID: 832
07-09 11:24:44.130: E/AndroidRuntime(832): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jp/com.jp.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.app.ActivityThread.access$800(ActivityThread.java:138)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.os.Handler.dispatchMessage(Handler.java:102)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.os.Looper.loop(Looper.java:136)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.app.ActivityThread.main(ActivityThread.java:5026)
07-09 11:24:44.130: E/AndroidRuntime(832):  at java.lang.reflect.Method.invokeNative(Native Method)
07-09 11:24:44.130: E/AndroidRuntime(832):  at java.lang.reflect.Method.invoke(Method.java:515)
07-09 11:24:44.130: E/AndroidRuntime(832):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
07-09 11:24:44.130: E/AndroidRuntime(832):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
07-09 11:24:44.130: E/AndroidRuntime(832):  at dalvik.system.NativeStart.main(Native Method)
07-09 11:24:44.130: E/AndroidRuntime(832): Caused by: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
07-09 11:24:44.130: E/AndroidRuntime(832):  at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:275)
07-09 11:24:44.130: E/AndroidRuntime(832):  at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2872)
07-09 11:24:44.130: E/AndroidRuntime(832):  at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3129)
07-09 11:24:44.130: E/AndroidRuntime(832):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:303)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.app.Activity.setContentView(Activity.java:1930)
07-09 11:24:44.130: E/AndroidRuntime(832):  at com.jp.MainActivity.onCreate(MainActivity.java:13)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.app.Activity.performCreate(Activity.java:5242)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-09 11:24:44.130: E/AndroidRuntime(832):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
07-09 11:24:44.130: E/AndroidRuntime(832):  ... 11 more

所以,我猜想一定是有问题的东西我已经成立了,但我不知道。

So I'm assuming there must be some problem with something I've set up, but I've no idea.

在此先感谢。

推荐答案

尝试使用

android:targetSdkVersion="19"

如果您使用的是

android:targetSdkVersion="20"

有一些问题API级别20 这里是一个类似的问题。

There is some problem API level 20. Here is a similar issue.

这篇关于不幸的是,(APP)已停止 - 一个新的/默认的应用程序在AVD / Eclipse中的错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆