0

我无法在模拟器上运行我的应用程序(或导出到 APK)我真的不知道发生了什么......希望有人以前遇到过这个问题或者可以解释正在发生的事情!

从 LOGCAT 的最后一行来看,我需要将它分成不同的线程——但我不知道如何开始!

任何帮助是极大的赞赏!!

日志猫:

03-03 00:43:49.098: D/AndroidRuntime(1003): >>>>>> AndroidRuntime START      com.android.internal.os.RuntimeInit <<<<<<
03-03 00:43:49.098: D/AndroidRuntime(1003): CheckJNI is ON
03-03 00:43:49.158: D/dalvikvm(1003): Trying to load lib libjavacore.so 0x0
03-03 00:43:49.168: D/dalvikvm(1003): Added shared lib libjavacore.so 0x0
03-03 00:43:49.218: D/dalvikvm(1003): Trying to load lib libnativehelper.so 0x0
03-03 00:43:49.218: D/dalvikvm(1003): Added shared lib libnativehelper.so 0x0
03-03 00:43:49.748: D/ExchangeService(647): Received deviceId from Email app: null
03-03 00:43:49.748: D/ExchangeService(647): !!! deviceId unknown; stopping self and retrying
03-03 00:43:50.408: D/AndroidRuntime(1003): Calling main entry com.android.commands.pm.Pm
03-03 00:43:50.508: W/PackageParser(512): Unable to read AndroidManifest.xml of     /data/local/tmp/Linking Manager.apk
03-03 00:43:50.508: W/PackageParser(512): java.io.FileNotFoundException: AndroidManifest.xml
03-03 00:43:50.508: W/PackageParser(512):   at     android.content.res.AssetManager.openXmlAssetNative(Native Method)
03-03 00:43:50.508: W/PackageParser(512):   at     android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487)
03-03 00:43:50.508: W/PackageParser(512):   at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455)
03-03 00:43:50.508: W/PackageParser(512):   at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:733)
03-03 00:43:50.508: W/PackageParser(512):   at     com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java    :171)
03-03 00:43:50.508: W/PackageParser(512):   at     com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:110)
03-03 00:43:50.508: W/PackageParser(512):   at android.os.Binder.execTransact(Binder.java:351)
03-03 00:43:50.508: W/PackageParser(512):   at dalvik.system.NativeStart.run(Native Method)
03-03 00:43:50.508: W/DefContainer(512): Failed to parse package
03-03 00:43:50.518: W/ActivityManager(292): No content provider found for permission revoke:     file:///data/local/tmp/Linking Manager.apk
03-03 00:43:50.698: D/dalvikvm(292): GC_EXPLICIT freed 10K, 27% free 5565K/7544K, paused     10ms+18ms, total 181ms
03-03 00:43:50.778: D/AndroidRuntime(1003): Shutting down VM
03-03 00:43:50.838: D/dalvikvm(1003): GC_CONCURRENT freed 119K, 21% free 477K/600K, paused     3ms+1ms, total 53ms
03-03 00:43:50.838: D/jdwp(1003): Got wake-up signal, bailing out of select
03-03 00:43:50.838: D/dalvikvm(1003): Debugger has detached; object registry had 1 entries
03-03 00:43:54.848: D/ExchangeService(647): !!! EAS ExchangeService, onCreate
03-03 00:43:54.848: D/ExchangeService(647): !!! EAS ExchangeService, onStartCommand, startingUp =     false, running = false
03-03 00:43:54.877: D/ExchangeService(647): !!! EAS ExchangeService, onStartCommand, startingUp =     true, running = false
03-03 00:43:54.887: W/ActivityManager(292): Unable to start service Intent {     act=com.android.email.ACCOUNT_INTENT } U=0: not found
03-03 00:43:54.887: D/ExchangeService(647): !!! Email application not found; stopping self
03-03 00:43:54.907: W/ActivityManager(292): Unable to start service Intent {     act=com.android.email.ACCOUNT_INTENT } U=0: not found
03-03 00:43:54.937: E/ActivityThread(647): Service com.android.exchange.ExchangeService has     leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40d09ac8 that     was originally bound here
03-03 00:43:54.937: E/ActivityThread(647): android.app.ServiceConnectionLeaked: Service     com.android.exchange.ExchangeService has leaked ServiceConnection     com.android.emailcommon.service.ServiceProxy$ProxyConnection@40d09ac8 that was originally bound here
03-03 00:43:54.937: E/ActivityThread(647):  at android.app.LoadedApk$ServiceDispatcher.<init>    (LoadedApk.java:969)
03-03 00:43:54.937: E/ActivityThread(647):  at     android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
03-03 00:43:54.937: E/ActivityThread(647):  at     android.app.ContextImpl.bindService(ContextImpl.java:1418)
03-03 00:43:54.937: E/ActivityThread(647):  at     android.app.ContextImpl.bindService(ContextImpl.java:1407)
03-03 00:43:54.937: E/ActivityThread(647):  at     android.content.ContextWrapper.bindService(ContextWrapper.java:473)
03-03 00:43:54.937: E/ActivityThread(647):  at     com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
03-03 00:43:54.937: E/ActivityThread(647):  at     com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
03-03 00:43:54.937: E/ActivityThread(647):  at     com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116)
03-03 00:43:54.937: E/ActivityThread(647):  at     com.android.exchange.ExchangeService.getDeviceId(ExchangeService.java:1249)
03-03 00:43:54.937: E/ActivityThread(647):  at     com.android.exchange.ExchangeService$7.run(ExchangeService.java:1856)
03-03 00:43:54.937: E/ActivityThread(647):  at     com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
03-03 00:43:54.937: E/ActivityThread(647):  at     com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
03-03 00:43:54.937: E/ActivityThread(647):  at android.os.AsyncTask$2.call(AsyncTask.java:287)
03-03 00:43:54.937: E/ActivityThread(647):  at     java.util.concurrent.FutureTask.run(FutureTask.java:234)
03-03 00:43:54.937: E/ActivityThread(647):  at     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
03-03 00:43:54.937: E/ActivityThread(647):  at     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
03-03 00:43:54.937: E/ActivityThread(647):  at java.lang.Thread.run(Thread.java:856)
03-03 00:43:54.947: E/StrictMode(647): null
03-03 00:43:54.947: E/StrictMode(647): android.app.ServiceConnectionLeaked: Service     com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40d09ac8 that was originally bound here
03-03 00:43:54.947: E/StrictMode(647):  at android.app.LoadedApk$ServiceDispatcher.<init>    (LoadedApk.java:969)
03-03 00:43:54.947: E/StrictMode(647):  at     android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
03-03 00:43:54.947: E/StrictMode(647):  at android.app.ContextImpl.bindService(ContextImpl.java:1418)
03-03 00:43:54.947: E/StrictMode(647):  at     android.app.ContextImpl.bindService(ContextImpl.java:1407)
03-03 00:43:54.947: E/StrictMode(647):  at     android.content.ContextWrapper.bindService(ContextWrapper.java:473)
03-03 00:43:54.947: E/StrictMode(647):  at     com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
03-03 00:43:54.947: E/StrictMode(647):  at     com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
03-03 00:43:54.947: E/StrictMode(647):  at com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116)
03-03 00:43:54.947: E/StrictMode(647):  at com.android.exchange.ExchangeService.getDeviceId(ExchangeService.java:1249)
03-03 00:43:54.947: E/StrictMode(647):  at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1856)
03-03 00:43:54.947: E/StrictMode(647):  at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
03-03 00:43:54.947: E/StrictMode(647):  at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
03-03 00:43:54.947: E/StrictMode(647):  at android.os.AsyncTask$2.call(AsyncTask.java:287)
03-03 00:43:54.947: E/StrictMode(647):  at     java.util.concurrent.FutureTask.run(FutureTask.java:234)
03-03 00:43:54.947: E/StrictMode(647):  at     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
03-03 00:43:54.947: E/StrictMode(647):  at     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
03-03 00:43:54.947: E/StrictMode(647):  at java.lang.Thread.run(Thread.java:856)
03-03 00:43:54.957: W/ActivityManager(292): Unbind failed: could not find connection for     android.os.BinderProxy@41003258
03-03 00:43:54.977: E/ActivityThread(647): Service com.android.exchange.ExchangeService has     leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40d42668 that     was originally bound here
03-03 00:43:54.977: E/ActivityThread(647): android.app.ServiceConnectionLeaked: Service     com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40d42668 that was originally bound here
03-03 00:43:54.977: E/ActivityThread(647):  at android.app.LoadedApk$ServiceDispatcher.<init>    (LoadedApk.java:969)
03-03 00:43:54.977: E/ActivityThread(647):  at     android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
03-03 00:43:54.977: E/ActivityThread(647):  at     android.app.ContextImpl.bindService(ContextImpl.java:1418)
03-03 00:43:54.977: E/ActivityThread(647):  at android.app.ContextImpl.bindService(ContextImpl.java:1407)
03-03 00:43:54.977: E/ActivityThread(647):  at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
03-03 00:43:54.977: E/ActivityThread(647):  at     com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
03-03 00:43:54.977: E/ActivityThread(647):  at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
03-03 00:43:54.977: E/ActivityThread(647):  at com.android.emailcommon.service.ServiceProxy.test(ServiceProxy.java:191)
03-03 00:43:54.977: E/ActivityThread(647):  at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1850)
03-03 00:43:54.977: E/ActivityThread(647):  at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
03-03 00:43:54.977: E/ActivityThread(647):  at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
03-03 00:43:54.977: E/ActivityThread(647):  at android.os.AsyncTask$2.call(AsyncTask.java:287)
03-03 00:43:54.977: E/ActivityThread(647):  at java.util.concurrent.FutureTask.run(FutureTask.java:234)
03-03 00:43:54.977: E/ActivityThread(647):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
03-03 00:43:54.977: E/ActivityThread(647):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
03-03 00:43:54.977: E/ActivityThread(647):  at java.lang.Thread.run(Thread.java:856)
03-03 00:43:54.998: E/StrictMode(647): null
03-03 00:43:54.998: E/StrictMode(647): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40d42668 that was originally bound here
03-03 00:43:54.998: E/StrictMode(647):  at android.app.LoadedApk$ServiceDispatcher.<init>    (LoadedApk.java:969)
03-03 00:43:54.998: E/StrictMode(647):  at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
03-03 00:43:54.998: E/StrictMode(647):  at android.app.ContextImpl.bindService(ContextImpl.java:1418)
03-03 00:43:54.998: E/StrictMode(647):  at android.app.ContextImpl.bindService(ContextImpl.java:1407)
03-03 00:43:54.998: E/StrictMode(647):  at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
03-03 00:43:54.998: E/StrictMode(647):  at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
03-03 00:43:54.998: E/StrictMode(647):  at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
03-03 00:43:54.998: E/StrictMode(647):  at com.android.emailcommon.service.ServiceProxy.test(ServiceProxy.java:191)
03-03 00:43:54.998: E/StrictMode(647):  at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1850)
03-03 00:43:54.998: E/StrictMode(647):  at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
03-03 00:43:54.998: E/StrictMode(647):  at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
03-03 00:43:54.998: E/StrictMode(647):  at android.os.AsyncTask$2.call(AsyncTask.java:287)
03-03 00:43:54.998: E/StrictMode(647):  at java.util.concurrent.FutureTask.run(FutureTask.java:234)
03-03 00:43:54.998: E/StrictMode(647):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
03-03 00:43:54.998: E/StrictMode(647):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
03-03 00:43:54.998: E/StrictMode(647):  at java.lang.Thread.run(Thread.java:856)
03-03 00:43:54.998: W/ActivityManager(292): Unbind failed: could not find connection for android.os.BinderProxy@4100c758
03-03 00:44:00.308: I/Choreographer(355): Skipped 30 frames!  The application may be doing too much   work on its main thread.
4

2 回答 2

0

您的 apk 是invalid,当当前安装的 apk签名不同时。 因此我建议

  1. 卸载旧应用程序
  2. 重建项目
  3. 重新安装apk
于 2013-03-03T14:44:07.900 回答
0

从日志看来,AndroidManifest.xml 丢失了。检查文件是否存在。如果您使用的是 eclipse,请执行 Project/clean 。并提供更多信息,如 AndroidManifest.xml 文件的内容。

于 2013-03-03T14:44:14.963 回答