求助,Android studio 虚拟机能运行但是出现这个问题,而且这样网络图片也加载不出来

hx58023049 2020-07-12 12:36:29
$ adb shell am start -n "com.example.helloandroidq/com.example.helloandroidq.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 21180 on device 'emulator-5554'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/RenderThread: type=1400 audit(0.0:115): avc: denied { write } for name="property_service" dev="tmpfs" ino=8346 scontext=u:r:untrusted_app:s0:c134,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
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/e.helloandroid: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/e.helloandroid: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
D/HostConnection: HostConnection::get() New Host Connection established 0xdd81cc80, tid 21211
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 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_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
I/e.helloandroid: Background young concurrent copying GC freed 26828(5238KB) AllocSpace objects, 1(20KB) LOS objects, 80% free, 1492KB/7636KB, paused 10.071ms total 251.436ms
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xe8df85e0: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xe8df85e0: ver 2 0 (tinfo 0xe8ddfba0)
W/Gralloc3: mapper 3.x is not supported
D/HostConnection: createUnique: call
D/HostConnection: HostConnection::get() New Host Connection established 0xdd81e6c0, tid 21211
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 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_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
D/eglCodecCommon: allocate: Ask for block of size 0x1000
allocate: ioctl allocate returned offset 0x3ff803000 size 0x2000
D/EGL_emulation: eglMakeCurrent: 0xe8df85e0: ver 2 0 (tinfo 0xe8ddfba0)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0
I/OpenGLRenderer: Davey! duration=1029ms; Flags=1, IntendedVsync=12505859577523, Vsync=12505876244189, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12505890928700, AnimationStart=12505891867500, PerformTraversalsStart=12505891992600, DrawStart=12506596480800, SyncQueued=12506618736400, SyncStart=12506659860700, IssueDrawCommandsStart=12506660123900, SwapBuffers=12506888814700, FrameCompleted=12506930360100, DequeueBufferDuration=117000, QueueBufferDuration=1157000,
I/Choreographer: Skipped 77 frames! The application may be doing too much work on its main thread.
I/OpenGLRenderer: Davey! duration=1339ms; Flags=0, IntendedVsync=12505920940113, Vsync=12507204273395, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12507206243300, AnimationStart=12507206326600, PerformTraversalsStart=12507207384100, DrawStart=12507215898400, SyncQueued=12507222332700, SyncStart=12507225553300, IssueDrawCommandsStart=12507226128300, SwapBuffers=12507228104800, FrameCompleted=12507264073200, DequeueBufferDuration=2387000, QueueBufferDuration=8809000,
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@8f6c141
I/Choreographer: Skipped 70 frames! The application may be doing too much work on its main thread.
D/EGL_emulation: eglMakeCurrent: 0xe8df85e0: ver 2 0 (tinfo 0xe8ddfba0)
I/OpenGLRenderer: Davey! duration=1791ms; Flags=1, IntendedVsync=12520480861869, Vsync=12521647528489, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12521652593400, AnimationStart=12521652734900, PerformTraversalsStart=12521653748100, DrawStart=12522167688700, SyncQueued=12522176438400, SyncStart=12522208516600, IssueDrawCommandsStart=12522209941200, SwapBuffers=12522281585900, FrameCompleted=12522304625000, DequeueBufferDuration=1592000, QueueBufferDuration=2031000,
D/EGL_emulation: eglMakeCurrent: 0xe8df85e0: ver 2 0 (tinfo 0xe8ddfba0)
I/OpenGLRenderer: Davey! duration=1834ms; Flags=1, IntendedVsync=12520480861869, Vsync=12521647528489, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12521652593400, AnimationStart=12521652734900, PerformTraversalsStart=12521653748100, DrawStart=12522306134800, SyncQueued=12522306308400, SyncStart=12522316353300, IssueDrawCommandsStart=12522316471400, SwapBuffers=12522318989600, FrameCompleted=12522325367700, DequeueBufferDuration=1307000, QueueBufferDuration=1579000,
I/Choreographer: Skipped 39 frames! The application may be doing too much work on its main thread.
...全文
10992 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hx58023049 2020-07-14
  • 打赏
  • 举报
回复
引用 6 楼 初学者-Study 的回复:
引用 4 楼 hx58023049 的回复:
[quote=引用 1 楼 初学者-Study 的回复:]用真机运行试一下看是否出现这样的错误,然后看一下有没有给网络请求的权限。
有给网络请求的权限,真机能运行,网络图片在真机上能加载出来,虚拟机上加载做不出来,但是还是出现Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.这个错误
那就是你的虚拟机有问题,你重新创建一个试试[/quote]重新创建可以在虚拟机上运行了,谢谢啊
hx58023049 2020-07-13
  • 打赏
  • 举报
回复
引用 1 楼 初学者-Study 的回复:
用真机运行试一下看是否出现这样的错误,然后看一下有没有给网络请求的权限。
有给网络请求的权限,真机能运行,网络图片在真机上能加载出来,虚拟机上加载做不出来,但是还是出现Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.这个错误
初学者-Study 2020-07-13
  • 打赏
  • 举报
回复
用真机运行试一下看是否出现这样的错误,然后看一下有没有给网络请求的权限。
初学者-Study 2020-07-13
  • 打赏
  • 举报
回复
引用 4 楼 hx58023049 的回复:
引用 1 楼 初学者-Study 的回复:
用真机运行试一下看是否出现这样的错误,然后看一下有没有给网络请求的权限。
有给网络请求的权限,真机能运行,网络图片在真机上能加载出来,虚拟机上加载做不出来,但是还是出现Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.这个错误
那就是你的虚拟机有问题,你重新创建一个试试
tk111794 2020-07-13
  • 打赏
  • 举报
回复

80,337

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧