当前位置: 首页 > 知识库问答 >
问题:

Android应用程序在调试模式下工作正常,但在运行模式下会冻结

舒俊雄
2023-03-14
05/15 09:17:30: Launching 'KENTEN' on HUAWEI DUB-LX1.
Connected to process 21935 on device 'huawei-dub_lx1-58K6R19124030060'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/HwFLClassLoader: get used feature list :/feature/used-list failed!
    USE_FEATURE_LIST had not init! 
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.astromyllc.kenten#10389#256
    apicache path=/storage/261A-3884 state=mounted key=com.astromyllc.kenten#10389#256
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.astromyllc.kenten#10389#0
I/HwApiCacheMangerEx: apicache path=/storage/261A-3884 state=mounted key=com.astromyllc.kenten#10389#0
E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
E/Minikin: Could not get cmap table size!
E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@7ad92c9
W/zygote64: Agent attach failed (result=2) : Unable to dlopen /data/data/com.astromyllc.kenten/code_cache/libjvmtiagent_arm64.so: dlopen failed: library "/data/data/com.astromyllc.kenten/code_cache/libjvmtiagent_arm64.so" not found
E/ActivityThread: Attaching agent failed: /data/data/com.astromyllc.kenten/code_cache/libjvmtiagent_arm64.so=/data/local/tmp/perfd/agent.config
I/zygote64: Starting profile saver IsSaveProfileNow end.
I/Process: Sending signal. PID: 21935 SIG: 9
Install successfully finished in 58 s 24 ms.
$ adb shell am start -n "com.astromyllc.kenten/com.astromyllc.kenten.Splash" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 22115 on device 'huawei-dub_lx1-58K6R19124030060'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/HwFLClassLoader: get used feature list :/feature/used-list failed!
    USE_FEATURE_LIST had not init! 
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.astromyllc.kenten#10389#256
I/MultiDex: VM with version 2.1.0 has multidex support
    Installing application
    VM has multidex support, MultiDex support library is disabled.
I/HwApiCacheMangerEx: apicache path=/storage/261A-3884 state=mounted key=com.astromyllc.kenten#10389#256
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.astromyllc.kenten#10389#0
I/HwApiCacheMangerEx: apicache path=/storage/261A-3884 state=mounted key=com.astromyllc.kenten#10389#0
E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@42410eb
I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
I/FirebaseInitProvider: FirebaseApp initialization successful
E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
E/Minikin: Could not get cmap table size!
W/tromyllc.kenten: type=1400 audit(0.0:3300): avc: denied { write } for name="hwlog_exception" dev="tmpfs" ino=13921 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:hw_exception_dev:s0 tclass=chr_file permissive=0
V/ActivityThread: Skipping new config:{1.0 620mcc1mnc [en_US] ldltr sw360dp w360dp h733dp 320dpi nrml long port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 720, 1520) nonFullScreen=0 suim:1 s.7}, config:{1.0 620mcc1mnc [en_US] ldltr sw360dp w360dp h733dp 320dpi nrml long port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 720, 1520) nonFullScreen=0 suim:1 s.7} for app:com.astromyllc.kenten
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation
V/HwPolicyFactory: : success to get AllImpl object and return....
V/HwWidgetFactory: : successes to get AllImpl object and return....
W/zygote64: Unsupported class loader
V/ActivityThread: callActivityOnCreate
I/Splash: On Create Begins
W/zygote64: Skipping duplicate class check due to unsupported classloader
I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:48 and remote module com.google.android.gms.measurement.dynamite:49
    Selected remote version of com.google.android.gms.measurement.dynamite, version >= 49
V/DynamiteModule: Dynamite loader version >= 2, using loadModule2NoCrashUtils
D/HwGalleryCacheManagerImpl: mIsEffect:false
W/ResourceType: ResTable_typeSpec entry count inconsistent: given 67, previously 69
    ResTable_typeSpec entry count inconsistent: given 5678, previously 5679
W/zygote64: Unsupported class loader
W/zygote64: Skipping duplicate class check due to unsupported classloader
D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f0f0009, context : com.astromyllc.kenten.Splash@1694331, Nhwext : 0, get Blur : disable with , null
I/System.out: Sending WAIT chunk
V/FA: onActivityCreated
V/FA: App measurement collection enabled
V/FA: App measurement enabled for app package, google app id: com.astromyllc.kenten, 1:1084982656950:android:ce8e16cf4612abd6838b17
I/FA: App measurement initialized, version: 40013
    To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.astromyllc.kenten
D/FA: Debug-level message logging enabled
V/FA: Persisting first open: 1621070309248
V/FA: App measurement setting deferred collection: false
V/FA: Checking service availability
    Service available
V/FA: Connecting to remote service
V/FA: Detected application was in foreground
V/FA: Session started, time: 5016503
V/FA: Connection attempt already in progress
I/FA: Tag Manager is not found and thus will not be used
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
I/zygote64: Do partial code cache collection, code=29KB, data=28KB
    After code cache collection, code=29KB, data=28KB
    Increasing code cache capacity to 128KB
I/zygote64: Thread[3,tid=22128,WaitingInMainSignalCatcherLoop,Thread*=0x78c7aa8400,peer=0x1ccc2ca0,"Signal Catcher"]: reacting to signal 3
I/zygote64: Wrote stack traces to '[tombstoned]'

这是LOGCAT日志

2021-05-15 09:18:28.732 22115-22115/? W/main: type=1400 audit(0.0:3294): avc: denied { create } for name="cgroup.procs" scontext=u:r:zygote:s0 tcontext=u:object_r:cgroup:s0 tclass=file permissive=0
2021-05-15 09:18:28.743 22115-22115/? I/zygote64: Late-enabling -Xcheck:jni
2021-05-15 09:18:28.900 22115-22115/? D/ActivityThread: Attach thread to application
2021-05-15 09:18:29.038 22115-22115/com.astromyllc.kenten D/HwFLClassLoader: get used feature list :/feature/used-list failed!
2021-05-15 09:18:29.038 22115-22115/com.astromyllc.kenten D/HwFLClassLoader: USE_FEATURE_LIST had not init! 
2021-05-15 09:18:29.085 22115-22169/com.astromyllc.kenten I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.astromyllc.kenten#10389#256
2021-05-15 09:18:29.086 22115-22115/com.astromyllc.kenten I/MultiDex: VM with version 2.1.0 has multidex support
2021-05-15 09:18:29.086 22115-22115/com.astromyllc.kenten I/MultiDex: Installing application
2021-05-15 09:18:29.086 22115-22115/com.astromyllc.kenten I/MultiDex: VM has multidex support, MultiDex support library is disabled.
2021-05-15 09:18:29.086 22115-22169/com.astromyllc.kenten I/HwApiCacheMangerEx: apicache path=/storage/261A-3884 state=mounted key=com.astromyllc.kenten#10389#256
2021-05-15 09:18:29.091 22115-22169/com.astromyllc.kenten I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.astromyllc.kenten#10389#0
2021-05-15 09:18:29.091 22115-22169/com.astromyllc.kenten I/HwApiCacheMangerEx: apicache path=/storage/261A-3884 state=mounted key=com.astromyllc.kenten#10389#0
2021-05-15 09:18:29.156 22115-22196/com.astromyllc.kenten E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@42410eb
2021-05-15 09:18:29.168 22115-22115/com.astromyllc.kenten I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
2021-05-15 09:18:29.251 22115-22115/com.astromyllc.kenten I/FirebaseInitProvider: FirebaseApp initialization successful
2021-05-15 09:18:29.258 22115-22169/com.astromyllc.kenten E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
2021-05-15 09:18:29.259 22115-22115/com.astromyllc.kenten E/Minikin: Could not get cmap table size!
2021-05-15 09:18:29.262 22115-22115/com.astromyllc.kenten W/tromyllc.kenten: type=1400 audit(0.0:3300): avc: denied { write } for name="hwlog_exception" dev="tmpfs" ino=13921 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:hw_exception_dev:s0 tclass=chr_file permissive=0
2021-05-15 09:18:29.292 22115-22205/com.astromyllc.kenten I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation
2021-05-15 09:18:29.346 22115-22208/com.astromyllc.kenten W/zygote64: Unsupported class loader
2021-05-15 09:18:29.351 22115-22115/com.astromyllc.kenten I/Splash: On Create Begins
2021-05-15 09:18:29.375 22115-22208/com.astromyllc.kenten W/zygote64: Skipping duplicate class check due to unsupported classloader
2021-05-15 09:18:29.416 22115-22208/com.astromyllc.kenten I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:48 and remote module com.google.android.gms.measurement.dynamite:49
2021-05-15 09:18:29.416 22115-22208/com.astromyllc.kenten I/DynamiteModule: Selected remote version of com.google.android.gms.measurement.dynamite, version >= 49
2021-05-15 09:18:29.440 22115-22115/com.astromyllc.kenten D/HwGalleryCacheManagerImpl: mIsEffect:false
2021-05-15 09:18:29.476 22115-22208/com.astromyllc.kenten W/ResourceType: ResTable_typeSpec entry count inconsistent: given 67, previously 69
2021-05-15 09:18:29.476 22115-22208/com.astromyllc.kenten W/ResourceType: ResTable_typeSpec entry count inconsistent: given 5678, previously 5679
2021-05-15 09:18:29.542 22115-22208/com.astromyllc.kenten W/zygote64: Unsupported class loader
2021-05-15 09:18:29.561 22115-22208/com.astromyllc.kenten W/zygote64: Skipping duplicate class check due to unsupported classloader
2021-05-15 09:18:29.634 22115-22115/com.astromyllc.kenten D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f0f0009, context : com.astromyllc.kenten.Splash@1694331, Nhwext : 0, get Blur : disable with , null
2021-05-15 09:18:29.689 22115-22115/com.astromyllc.kenten I/System.out: Sending WAIT chunk
2021-05-15 09:18:29.845 22115-22264/com.astromyllc.kenten I/FA: App measurement initialized, version: 40013
2021-05-15 09:18:29.845 22115-22264/com.astromyllc.kenten I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2021-05-15 09:18:29.846 22115-22264/com.astromyllc.kenten I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.astromyllc.kenten
2021-05-15 09:18:29.846 22115-22264/com.astromyllc.kenten D/FA: Debug-level message logging enabled
2021-05-15 09:18:30.074 22115-22264/com.astromyllc.kenten I/FA: Tag Manager is not found and thus will not be used
2021-05-15 09:18:30.489 22115-22127/com.astromyllc.kenten I/zygote64: Do partial code cache collection, code=29KB, data=28KB
2021-05-15 09:18:30.489 22115-22127/com.astromyllc.kenten I/zygote64: After code cache collection, code=29KB, data=28KB
2021-05-15 09:18:30.489 22115-22127/com.astromyllc.kenten I/zygote64: Increasing code cache capacity to 128KB
2021-05-15 09:18:40.001 22115-22128/com.astromyllc.kenten I/zygote64: Thread[3,tid=22128,WaitingInMainSignalCatcherLoop,Thread*=0x78c7aa8400,peer=0x1ccc2ca0,"Signal Catcher"]: reacting to signal 3
2021-05-15 09:18:40.073 22115-22128/com.astromyllc.kenten I/zygote64: Wrote stack traces to '[tombstoned]'
2021-05-15 09:19:21.041 22115-22174/com.astromyllc.kenten I/zygote64: Starting profile saver IsSaveProfileNow end.

共有1个答案

孟楷
2023-03-14

检查是否在Build.Gradle中设置了ProGuard

我想您的build.gradle(.app)有如下的设置releaseminifyenabled true

buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        ...
    }
}

并且必须为代码设置progaurd。或者minifyenabled false,如果不需要progaurd

 类似资料:
  • 我有一个应用程序,现在我要发布它。我已经创建了一个apk文件,并且安装了它,但是当我向服务器发送登录请求时,它返回NULL。 奇怪的是,当我用调试构建启动应用程序时,它工作得很好。该问题仅发生在释放模式。所以看了这篇文章后我认为问题出在proguard 这是我目前所做的。 null 这是我的proguard-rules.pro文件。

  • 我想减小应用程序的大小,因此我在发布模式下使用,但由于此应用程序崩溃。下面是我的 Build.Gradle 我添加了proguard-rules.pro。如果我移除它,它会给我多个警告。 我的清单是这样的: 我也尝试过使用,但它仍然在发布模式下崩溃,在调试模式下运行良好。 我还尝试在依赖项中添加。但没有运气

  • 问题内容: 从最近开始,在Eclipse Galileo中以调试模式运行程序要慢得多。 我不知道有什么变化。 您知道可能是什么原因吗?正常运行它不是问题。 问题答案: 另一个“调试中断”是方法进入/退出断点的使用。 您是否尝试一次删除 所有 断点定义? 有时我认为Eclipse与其某些内部/显示状态不同步。也许您应该尝试设置新的工作空间(而非副本)。有时这可以帮助我从虚假功能中恢复过来。 这是您可

  • 我不明白为什么first方法在并行模式下是有缺陷的,而且书中没有解释。 拜托,解释一下。

  • 有谁能帮我制定规则吗。昨天,当我从谷歌playstore下载时,我的应用程序运行良好。但当我用proguard规则更新我的应用程序时,当我从google play store下载时,我的应用程序崩溃了。但当我在调试模式下从android studio运行时,运行非常完美。 我最近更新了我的proguard-rules.pro 我的gradle文件中有很多库 但我犯了一个错误,我真的不知道发生了什么