我最近在Windows 7(64位)上安装了ADT / Eclipse软件包.每当我尝试在模拟器上运行应用程序时,它只是说“不幸的是,应用已停止”.我已经搜索了这个错误,并阅读了本网站和其他网站上的大量修复内容,但是所有这些修补程序似乎都遇到了问题.
如果没有对代码进行任何更改,就会发生此错误.我已经尝试了多个项目,使用不同的最小和目标SDK,以获得相同的结果.
这是我的logcat日志问题.
07-09 11:24:44.100: D/AndroIDRuntime(832): Shutting down VM07-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: main07-09 11:24:44.130: E/AndroIDRuntime(832): Process: com.jp, PID: 83207-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.access0(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
所以我假设我设置的东西一定有问题,但我不知道.
提前致谢.
解决方法:
尝试使用
androID:targetSdkVersion="19"
如果你正在使用
androID:targetSdkVersion="20"
API级别有一些问题.Here是一个类似的问题.
总结以上是内存溢出为你收集整理的android – 不幸的是,(app)已停止 – 在新的/默认应用程序上的AVD / Eclipse中出现错误消息全部内容,希望文章能够帮你解决android – 不幸的是,(app)已停止 – 在新的/默认应用程序上的AVD / Eclipse中出现错误消息所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)