不幸的应用程序已经停止的Android
问题描述:
我的应用程序在Android版本2.3.7运行良好,但是当我在Android 4.2上运行它,它说,遗憾的是应用程序已经停止不幸的应用程序已经停止的Android
这是我的清单文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.radaee.reader"
android:versionCode="1"
android:versionName="1.1" >
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<supports-screens android:largeScreens="true" android:anyDensity="true" android:normalScreens="true" android:smallScreens="true" android:resizeable="true" />
<application
android:icon="@drawable/icon"
android:label="@string/app_name" >
<activity
android:name=".SplashScreen"
android:configChanges="orientation"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".StartApp">
<intent-filter>
<action android:name="com.radaee.reader.StartApp" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
<uses-sdk android:targetSdkVersion="17" android:minSdkVersion="4" android:maxSdkVersion="17"/>
</manifest>
logcat的:
?:??: W/?(?): at java.lang.Thread.run(Thread.java:856)
?:??: W/?(?): [ 02-09 13:42:08.241 609: 609 E/StrictMode ]
?:??: W/?(?): null
?:??: W/?(?): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection [email protected]d52a8 that was originally bound here
?:??: W/?(?): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
?:??: W/?(?): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
?:??: W/?(?): at android.app.ContextImpl.bindService(ContextImpl.java:1418)
?:??: W/?(?): at android.app.ContextImpl.bindService(ContextImpl.java:1407)
?:??: W/?(?): at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
?:??: W/?(?): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
?:??: W/?(?): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
?:??: W/?(?): at com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116)
?:??: W/?(?): at com.android.exchange.ExchangeService.getDeviceId(ExchangeService.java:1249)
?:??: W/?(?): at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1856)
?:??: W/?(?): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
?:??: W/?(?): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
?:??: W/?(?): at android.os.AsyncTask$2.call(AsyncTask.java:287)
?:??: W/?(?): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
?:??: W/?(?): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
?:??: W/?(?): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
?:??: W/?(?): at java.lang.Thread.run(Thread.java:856)
?:??: W/?(?): [ 02-09 13:42:08.241 290: 501 W/ActivityManager ]
?:??: W/?(?): Unbind failed: could not find connection for [email protected]
?:??: W/?(?): [ 02-09 13:42:21.891 392: 392 W/Trace ]
?:??: W/?(?): Unexpected value from nativeGetEnabledTags: 0
?:??: W/?(?): [ 02-09 13:42:21.911 392: 392 W/Trace ]
?:??: W/?(?): Unexpected value from nativeGetEnabledTags: 0
有谁可以告诉我如何解决这个问题?
答
改变你的活动名称像这样的manifest.xml和尝试
android:name=".SplashScreen"
变化
android:name="com.radaee.reader.SplashScreen"
+3
Nope:http://developer.android.com/guide/topics/manifest/activity-element.html#nm – 2013-02-09 12:57:24
+0
由这样做表示无法在设备'emulator-5556上安装PDFReader.apk! [2013-02-09 17:50:34 - PDFReader](null) [2013-02-09 17:50:34 - PDFReader]发布取消! – 2013-02-09 12:58:27
发布logcat的?什么错误是崩溃的应用程序 – 2013-02-09 12:35:05
我张贴它退房 – 2013-02-09 13:43:58
Whate发生在这里:ServiceProxy.java:157 – Leandros 2013-02-09 16:09:02