嗨,我基本上刚刚开始为 android 构建应用程序,我一直在学习一些教程只是为了开始,但我的应用程序不会在 4.2 中运行。我收到消息“Unfrotunatley,您的应用程序已关闭...”。所以我创建了一个 android 2.2 模拟器,并且运行良好,但在 Eclipse 中,它只在 2.2 模拟器旁边显示“x”,但 4.2 模拟器显示完美。
我如何让 2.2 模拟器在 eclipse 上工作,我有 SDK 和所有这些,它只是不给我运行它的选项。不从 Eclipse 启动时它工作正常。
另外,我知道这可以归类为另一个问题,但我的程序有 0 个错误,并且与我一直在关注的教程几乎相同。我试图调试它,它说“跳过了 42 帧。也许你的程序正在运行很多进程”,所以我通过了这个程序,实际上什么都没有发生,除非我按下按钮。
日志错误:
01-22 04:55:12.697: E/ActivityThread(740): Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cf1f08 that was originally bound here
01-22 04:55:12.697: E/ActivityThread(740): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cf1f08 that was originally bound here
01-22 04:55:12.697: E/ActivityThread(740): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
01-22 04:55:12.697: E/ActivityThread(740): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
01-22 04:55:12.697: E/ActivityThread(740): at android.app.ContextImpl.bindService(ContextImpl.java:1418)
01-22 04:55:12.697: E/ActivityThread(740): at android.app.ContextImpl.bindService(ContextImpl.java:1407)
01-22 04:55:12.697: E/ActivityThread(740): at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.exchange.ExchangeService.getDeviceId(ExchangeService.java:1249)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1856)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
01-22 04:55:12.697: E/ActivityThread(740): at android.os.AsyncTask$2.call(AsyncTask.java:287)
01-22 04:55:12.697: E/ActivityThread(740): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
01-22 04:55:12.697: E/ActivityThread(740): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
01-22 04:55:12.697: E/ActivityThread(740): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
01-22 04:55:12.697: E/ActivityThread(740): at java.lang.Thread.run(Thread.java:856)
我也经常得到这个:
01-22 05:00:10.832: W/Trace(740): Unexpected value from nativeGetEnabledTags: 0