StackOverflow上有许多关于"错误打开跟踪文件" 错误消息的Q& A&#。但看起来我的情况有所不同。
出现此错误消息时,我的应用程序崩溃。
这是logcat:
03-06 20:07:35.142 3033-16751/? W/photo.fastid.printservice.utilities.DownloadFile: Starting download......from https://example.com/download
03-06 20:07:37.052 3033-16775/? W/photo.fastid.printservice.utilities.DownloadFile: Starting download......from https://example.com/download
03-06 20:07:38.622 16792-16792/? E/cutils-trace: Error opening trace file: No such file or directory (2)
03-06 20:07:38.832 16792-16792/? E/memtrack: Couldn't load memtrack module (No such file or directory)
03-06 20:07:38.832 16792-16792/? E/android.os.Debug: failed to load memtrack module: -2
03-06 20:07:40.402 545-2066/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1162 com.android.server.am.ActivityManagerService.onVideoPlayerCrashed:3689 com.android.server.am.ActivityManagerService.handleAppDiedLocked:3719 com.android.server.am.ActivityManagerService.removeProcessLocked:4887 com.android.server.am.ActivityManagerService.killPackageProcessesLocked:4696
logcat中没有其他内容,没有例外和打印堆栈......
我的问题:
注意:此应用程序已旧,但错误是新的。同时,代码没有(显着)改变。这可能是由AndroidStudio更新我的SDK引起的吗?
我的傻瓜:
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "openbook.pub.photosprint"
minSdkVersion 19
targetSdkVersion 25
versionCode 2
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
答案 0 :(得分:0)
我从未真正解决过这个问题,但在添加
之后<application
android:largeHeap=["true"]
. . .
</application>
对于Manifest,我还没有看到这次崩溃再次发生......