Однако ошибка возникает только в это приложение. Я могу использовать этот телефон для отладки другого приложения или использовать другой телефон для отладки этого приложения. Ошибки случаются нечасто, но если и случаются, то всегда. Я не могу найти решения в Интернете.
Я пытался гуглить, но не получил ответа. Перезагружать телефон или пересобирать приложение также бесполезно.
Используйте другой телефон, чтобы это исправить.
Это исключение показано в моем логарифме:
Код: Выделить всё
2024-11-29 13:55:46.272 7319-7319 BOOTPROF com.example.qingting E Failure open /proc/bootprof, not found!
java.io.FileNotFoundException: /proc/bootprof: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:574)
at java.io.FileOutputStream.(FileOutputStream.java:236)
at java.io.FileOutputStream.(FileOutputStream.java:125)
at com.android.internal.os.ZygoteInit.addBootEvent(ZygoteInit.java:138)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1029)
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
at libcore.io.IoBridge.open(IoBridge.java:560)
at java.io.FileOutputStream.(FileOutputStream.java:236)
at java.io.FileOutputStream.(FileOutputStream.java:125)
at com.android.internal.os.ZygoteInit.addBootEvent(ZygoteInit.java:138)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1029)
2024-11-29 13:55:46.293 7319-7319 BoostFramework com.example.qingting E BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: com.qualcomm.qti.Performance
2024-11-29 13:55:46.293 7319-7319 BoostFramework com.example.qingting E BoostFramework() Ux Perf: Exception = java.lang.ClassNotFoundException: com.qualcomm.qti.UxPerformance
2024-11-29 13:55:46.353 7319-7362 com.example.qingting com.example.qingting E Could not write anonymous vdex /system_ext/framework/oat/arm64/mediatek-framework.vdex: Could not open /system_ext/framework/oat/arm64/mediatek-framework.vdex for writing
2024-11-29 13:55:46.392 7319-7319 com.example.qingting com.example.qingting E register_android_view_SurfaceRuntimeShader
2024-11-29 13:55:46.392 7319-7319 com.example.qingting com.example.qingting E register_android_view_SurfaceRuntimeShader 0
2024-11-29 13:55:46.444 4674-7086 SuggestManager com.miui.securitycenter.remote E openApp name = com.example.qingting
2024-11-29 13:55:46.469 7319-7319 com.example.qingting com.example.qingting E JVMTI Version 0x30010200 requested but the runtime is not debuggable! Only limited, best effort kArtTiVersion (0x70010200) environments are available. If possible, rebuild your apk in debuggable mode or start the runtime with the `-Xcompiler-option --debuggable` flags.
2024-11-29 13:55:46.469 7319-7319 com.example.qingting com.example.qingting E Bad JNI version passed to GetEnv: 805372416
2024-11-29 13:55:46.685 7319-7319 MtkSystemS...ceRegistry com.example.qingting E Exception while getting FmRadioPackageManager class
2024-11-29 13:55:46.751 7319-7347 com.example.qingting com.example.qingting E JVMTI Version 0x30010000 requested but the runtime is not debuggable! Only limited, best effort kArtTiVersion (0x70010200) environments are available. If possible, rebuild your apk in debuggable mode or start the runtime with the `-Xcompiler-option --debuggable` flags.
2024-11-29 13:55:46.751 7319-7347 com.example.qingting com.example.qingting E Bad JNI version passed to GetEnv: 805371904
2024-11-29 13:55:46.757 1015-1717 BufferQueueDebug surfaceflinger E [637e904 Waiting For Debugger: com.example.qingting#463519](this:0xb4000078363a5a30,id:-1,api:0,p:-1,c:-1) id info cannot be read from '637e904 Waiting For Debugger: com.example.qingting#463519'
2024-11-29 13:55:46.767 1015-1717 BufferQueueDebug surfaceflinger E [Waiting For Debugger: com.example.qingting#463521](this:0xb40000783607fa30,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'Waiting For Debugger: com.example.qingting#463521'
2024-11-29 13:55:46.781 1015-1075 BufferQueueDebug surfaceflinger E [Surface(name=637e904 Waiting For Debugger: com.example.qingting)/@0xc7206d2 - animation-leash of window_animation#463522](this:0xb40000783f2fba30,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'Surface(name=637e904 Waiting For Debugger: com.example.qingting)/@0xc7206d2 - animation-leash of window_animation#463522'
2024-11-29 13:55:46.841 7319-7319 Zygote com.example.qingting E System zygote died with fatal exception
java.lang.NoSuchMethodError: No static method suspendAllAndSendVmStart()V in class Ldalvik/system/VMDebug; or its super classes (declaration of 'dalvik.system.VMDebug' appears in /apex/com.android.art.compatible/javalib/core-libart.jar)
at android.os.Debug.suspendAllAndSendVmStart(Debug.java:1057)
at android.app.ActivityThread.suspendAllAndSendVmStart(ActivityThread.java:7579)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7419)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2409)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:222)
at android.os.Looper.loop(Looper.java:314)
at android.app.ActivityThread.main(ActivityThread.java:8716)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:565)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1042)
2024-11-29 13:55:46.841 7319-7319 AndroidRuntime com.example.qingting E FATAL EXCEPTION: main
Process: com.example.qingting, PID: 7319
java.lang.NoSuchMethodError: No static method suspendAllAndSendVmStart()V in class Ldalvik/system/VMDebug; or its super classes (declaration of 'dalvik.system.VMDebug' appears in /apex/com.android.art.compatible/javalib/core-libart.jar)
at android.os.Debug.suspendAllAndSendVmStart(Debug.java:1057)
at android.app.ActivityThread.suspendAllAndSendVmStart(ActivityThread.java:7579)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7419)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2409)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:222)
at android.os.Looper.loop(Looper.java:314)
at android.app.ActivityThread.main(ActivityThread.java:8716)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:565)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1042)
Код: Выделить всё
plugins {
alias(libs.plugins.android.application)
}
android {
namespace 'com.example.qingting'
compileSdk 34
defaultConfig {
applicationId "com.example.qingting"
minSdk 34
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
debuggable true
}
release {
debuggable false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.16.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
implementation 'io.jsonwebtoken:jjwt-impl:0.12.6'
implementation 'io.jsonwebtoken:jjwt-jackson:0.12.6'
implementation 'com.github.jenly1314:circleprogressview:1.1.3'
implementation 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation libs.appcompat
implementation libs.material
implementation libs.activity
implementation libs.constraintlayout
testImplementation libs.junit
androidTestImplementation libs.ext.junit
androidTestImplementation libs.espresso.core
}
[*]обновить мою версию jdk до JDK17 и сделать версию JDK gradle с jdk21 на jdk17.< /li>
обновить все мои зависимости до последней версии.
[*]пользоваться другим компьютером с другой студией Android.
но исключение все еще существует, я мог бы не отлаживать.
Подробнее здесь: https://stackoverflow.com/questions/792 ... ndvmstartv
Мобильная версия