为什么 android studio 模拟器不工作?

Why the android studio emulator wont work?

从昨天开始,android studio 设备模拟器将不再工作。

没有更改项目的任何内容,之前一切都运行良好。 尝试更改构建版本的编译和目标版本以及一些不同的 api 但它不会工作。 我卸载了 android studio,还卸载并安装了所有 sdk 工具,但到目前为止没有任何效果。尝试更改 adv 设置并在互联网上查找但没有找到解决方案。日志中没有任何错误或看起来可疑的东西,不知道如何解决它 运行 它。

当我启动应用程序时,显示屏保持白色,只有状态栏是我选择的颜色。

运行:

Connected to process 6174 on device 'Pixel_4_XL_API_30 [emulator-5554]'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/.n.newnightsta: Not late-enabling -Xcheck:jni (already on)
I/.n.newnightsta: Unquickening 12 vdex files!
W/.n.newnightsta: Unexpected CPU variant for X86 using defaults: x86
D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar
I/.n.newnightsta: The ClassLoaderContext is a special shared library.
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
W/.n.newnightsta: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
    Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
D/HostConnection: HostConnection::get() New Host Connection established 0xed360840, tid 6203
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0 
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/EGL_emulation: eglCreateContext: 0xed360990: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xed360990: ver 3 0 (tinfo 0xed5ad0f0) (first time)
I/Gralloc4: mapper 4.x is not supported
D/HostConnection: createUnique: call
    HostConnection::get() New Host Connection established 0xed361790, tid 6203
D/goldfish-address-space: allocate: Ask for block of size 0x100
D/goldfish-address-space: allocate: ioctl allocate returned offset 0x3f806f000 size 0x2000
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0 
I/.n.newnightsta: Waiting for a blocking GC ProfileSaver
I/.n.newnightsta: WaitForGcToComplete blocked ProfileSaver on RunEmptyCheckpoint for 5.974ms

Logcat:

 021-01-26 14:10:33.265 1283-2283/com.google.android.gms E/angh: Phenotype API error. Event # caox@6d0132fb, EventCode: 12 [CONTEXT service_id=51 ]
    anfl: 29503
        at angn.b(:com.google.android.gms@201817022@20.18.17 (040700-311416286):25)
        at angh.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):90)
        at angh.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):77)
        at zus.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):10)
        at blot.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):2)
        at sji.b(:com.google.android.gms@201817022@20.18.17 (040700-311416286):12)
        at sji.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):7)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at spj.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):0)
        at java.lang.Thread.run(Thread.java:923)
2021-01-26 14:10:33.267 1283-2283/com.google.android.gms E/AsyncOperation: serviceID=51, operation=GetCommittedConfigurationOperationCall
    OperationException[Status{statusCode=unknown status code: 29503, resolution=null}]
        at angh.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):92)
        at angh.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):77)
        at zus.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):10)
        at blot.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):2)
        at sji.b(:com.google.android.gms@201817022@20.18.17 (040700-311416286):12)
        at sji.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):7)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at spj.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):0)
        at java.lang.Thread.run(Thread.java:923)
2021-01-26 14:10:33.271 1283-2957/com.google.android.gms E/NetRec: [187] akiy.a: Could not retrieve server token for package com.google.android.apps.gcs
    java.util.concurrent.ExecutionException: rey: 29503: 
        at auct.b(:com.google.android.gms@201817022@20.18.17 (040700-311416286):5)
        at auct.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):23)
        at akiy.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):1)
        at akiy.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):4)
        at akix.getHeaders(:com.google.android.gms@201817022@20.18.17 (040700-311416286):2)
        at com.android.volley.toolbox.HttpClientStack.performRequest(:com.google.android.gms@201817022@20.18.17 (040700-311416286):18)
        at sdq.performRequest(:com.google.android.gms@201817022@20.18.17 (040700-311416286):1)
        at bqg.executeRequest(:com.google.android.gms@201817022@20.18.17 (040700-311416286):1)
        at com.android.volley.toolbox.BasicNetwork.performRequest(:com.google.android.gms@201817022@20.18.17 (040700-311416286):9)
        at sdr.performRequest(:com.google.android.gms@201817022@20.18.17 (040700-311416286):14)
        at com.android.volley.NetworkDispatcher.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):6)
        at com.android.volley.NetworkDispatcher.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):2)
     Caused by: rey: 29503: 
        at rkl.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):4)
        at anfv.b(:com.google.android.gms@201817022@20.18.17 (040700-311416286):3)
        at angn.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):8)
        at zus.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):17)
        at blot.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):2)
        at sji.b(:com.google.android.gms@201817022@20.18.17 (040700-311416286):12)
        at sji.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):7)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at spj.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):0)
        at java.lang.Thread.run(Thread.java:923)
2021-01-26 14:10:33.271 1283-2957/com.google.android.gms W/NetRec: [187] akiy.a: No server tokens extracted.
2021-01-26 14:10:33.315 183-185/? E/android.system.suspend@1.0-service: Error opening kernel wakelock stats for: wakeup34: Permission denied
2021-01-26 14:10:33.313 183-183/? W/Binder:183_1: type=1400 audit(0.0:112): avc: denied { read } for name="wakeup34" dev="sysfs" ino=18494 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
2021-01-26 14:10:33.324 183-185/? E/android.system.suspend@1.0-service: Error opening kernel wakelock stats for: wakeup35: Permission denied
2021-01-26 14:10:33.321 183-183/? W/Binder:183_1: type=1400 audit(0.0:113): avc: denied { read } for name="wakeup35" dev="sysfs" ino=18557 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
2021-01-26 14:10:33.338 1283-2957/com.google.android.gms E/Volley: [187] BasicNetwork.performRequest: Unexpected response code 400 for https://mobilenetworkscoring-pa.googleapis.com/v1/GetWifiQuality?key=AIzaSyBrlVtd67QvwS_Wz0Do4ZIdOeA6ThtVczU
2021-01-26 14:10:33.339 1283-5201/com.google.android.gms I/NetRec: [320] aklm.b: Will retry failed rapid_refresh_scores_task task as standard refresh.
2021-01-26 14:10:33.345 1283-5201/com.google.android.gms W/NetRec: [320] aklm.a: Unexpected exception com.android.volley.ClientError while waiting for score updates (com.android.volley.ClientError). Returning 2.
2021-01-26 14:10:33.356 1283-5201/com.google.android.gms I/NetRec: [320] NetRecChimeraGcmTaskService.a: Still entries pending update, scheduling new rapid_refresh_scores_task refresh.
2021-01-26 14:10:33.361 1283-5201/com.google.android.gms I/NetRec: [320] NetRecChimeraGcmTaskService.a: Completed rapid_refresh_scores_task score refresh task in 215 ms, returning 2
2021-01-26 14:10:35.350 0-0/? W/healthd: battery l=100 v=5000 t=25.0 h=2 st=4 c=900000 fc=300000 cc=10 chg=

尝试关闭 即时 运行:

  1. 打开设置或首选项对话框:在Windows或Linux上,select菜单栏中的文件>设置。在 Mac OSX、select Android Studio > 菜单栏中的首选项。
  2. 导航到“构建、执行、部署”>“即时”运行。
  3. 取消选中代码更改时重新启动 activity 旁边的复选框。 重建。

我的问题解决了! 因为我有很多不同编程状态的备份我可以回到我做的第一个备份并复制我在文件夹中做的所有新东西现在一切正常不知道我的问题的原因但我解决了它。