Android模拟器加载但不加载程序?

Android模拟器加载但不加载程序?,第1张

概述我很确定我有所有必要的安装.我创建了AVD并尝试运行SDK中包含的一个示例应用程序(“Jetboy”).当我点击运行程序模拟器启动并最终加载android但没有应用程序启动.这是输出:[2011-12-1416:16:24-JetBoy]------------------------------[2011-12-1416:16:24-JetBoy]Androi

我很确定我有所有必要的安装.我创建了AVD并尝试运行SDK中包含的一个示例应用程序(“Jetboy”).当我点击运行程序模拟器启动并最终加载android但没有应用程序启动.

这是输出:

[2011-12-14 16:16:24 - JetBoy] ------------------------------[2011-12-14 16:16:24 - JetBoy] AndroID Launch![2011-12-14 16:16:24 - JetBoy] adb is running normally.[2011-12-14 16:16:24 - JetBoy] Performing com.example.androID.jetboy.JetBoy activity launch[2011-12-14 16:16:24 - JetBoy] automatic Target Mode: launching new emulator with compatible AVD 'my_avd'[2011-12-14 16:16:24 - JetBoy] Launching a new emulator with Virtual Device 'my_avd'[2011-12-14 16:16:24 - Emulator] emulator: warning: opening audio input Failed[2011-12-14 16:16:24 - Emulator] [2011-12-14 16:16:28 - Emulator] emulator: WARNING: Unable to create sensors port: UnkNown error[2011-12-14 16:16:28 - JetBoy] New emulator found: emulator-5554[2011-12-14 16:16:28 - JetBoy] Waiting for HOME ('androID.process.acore') to be launched...[2011-12-14 16:17:04 - JetBoy] HOME is up on device 'emulator-5554'[2011-12-14 16:17:04 - JetBoy] Uploading JetBoy.apk onto device 'emulator-5554'[2011-12-14 16:17:07 - JetBoy] Installing JetBoy.apk...[2011-12-14 16:17:35 - JetBoy] Success![2011-12-14 16:17:35 - JetBoy] Starting activity com.example.androID.jetboy.JetBoy on device emulator-5554[2011-12-14 16:17:36 - JetBoy] ActivityManager: Starting: Intent { act=androID.intent.action.MAIN cat=[androID.intent.category.LAUNCHER] cmp=com.example.androID.jetboy/.JetBoy }

这是logcat,如下面的评论所示:

12-14 16:33:05.194: D/dalvikvm(539): GC_FOR_ALLOC freed <1K, 7% free 14070K/15047K, paused 35ms12-14 16:33:05.214: I/dalvikvm-heap(539): Grow heap (frag case) to 15.801MB for 2073616-byte allocation12-14 16:33:05.264: D/dalvikvm(539): GC_CONCURRENT freed 0K, 6% free 16095K/17095K, paused 4ms+5ms12-14 16:33:05.594: D/dalvikvm(539): GC_FOR_ALLOC freed 1414K, 10% free 16481K/18119K, paused 41ms12-14 16:33:05.784: D/JetBoy(539): @@@ done creating vIEw!12-14 16:33:05.954: I/WindowManager(89): createSurface Window{416061c8 com.example.androID.jetboy/com.example.androID.jetboy.JetBoy paused=false}: DRAW Now PENDING12-14 16:33:06.094: I/WindowManager(89): createSurface Window{41615788 SurfaceVIEw paused=false}: DRAW Now PENDING12-14 16:33:06.194: D/dalvikvm(539): GC_FOR_ALLOC freed 425K, 5% free 17308K/18119K, paused 58ms12-14 16:33:06.224: I/dalvikvm-heap(539): Grow heap (frag case) to 19.776MB for 2926096-byte allocation12-14 16:33:06.354: D/dalvikvm(539): GC_FOR_ALLOC freed 5K, 4% free 20159K/20999K, paused 54ms12-14 16:33:06.475: D/gralloc_goldfish(539): Emulator without GPU emulation detected.12-14 16:33:06.614: D/dalvikvm(539): GC_CONCURRENT freed 0K, 4% free 20160K/20999K, paused 6ms+36ms12-14 16:33:06.835: D/dalvikvm(539): GC_FOR_ALLOC freed 2025K, 14% free 18135K/20999K, paused 35ms12-14 16:33:06.894: I/dalvikvm-heap(539): Grow heap (frag case) to 20.583MB for 2926096-byte allocation12-14 16:33:07.085: D/dalvikvm(539): GC_CONCURRENT freed <1K, 13% free 20992K/23879K, paused 17ms+5ms12-14 16:33:07.554: I/ActivityManager(89): displayed com.example.androID.jetboy/.JetBoy: +4s900ms (total +42s207ms)12-14 16:33:07.564: I/ActivityManager(89): displayed com.androID.launcher/com.androID.launcher2.Launcher: +42s215ms12-14 16:33:07.594: V/Phonestatusbar(143): setlightsOn(true)12-14 16:33:08.984: W/NetworkManagementSocketTagger(89): setKernelCountSet(10005, 0) Failed with errno -212-14 16:33:55.095: W/ThrottleService(89): unable to find stats for iface rmnet0 

第二个日志,现在尝试使用“Skeleton Application”作为样本

12-14 16:50:28.033: I/DEBUG(33): deBUGgerd: Nov 23 2011 22:48:3112-14 16:50:28.133: I/qemu-props(31): connected to 'boot-propertIEs' qemud service.12-14 16:50:28.133: I/qemu-props(31): receiving..12-14 16:50:28.133: I/qemu-props(31): received: dalvik.vm.heapsize=24m12-14 16:50:28.234: I/qemu-props(31): receiving..12-14 16:50:28.234: I/qemu-props(31): received: qemu.sf.lcd_density=24012-14 16:50:28.234: I/qemu-props(31): receiving..12-14 16:50:28.234: I/qemu-props(31): received: qemu.hw.mainkeys=112-14 16:50:28.234: I/qemu-props(31): receiving..12-14 16:50:28.234: I/qemu-props(31): received: qemu.sf.fake_camera=back12-14 16:50:28.234: I/qemu-props(31): receiving..12-14 16:50:28.234: I/qemu-props(31): exiting (4 propertIEs set).12-14 16:50:28.283: I/Vold(30): Vold 2.1 (the revenge) firing up12-14 16:50:28.313: I/Netd(32): Netd 1.0 starting12-14 16:50:28.353: D/Vold(30): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)12-14 16:50:28.443: E/Netd(32): Unable to bind netlink socket: No such file or directory12-14 16:50:28.443: E/Netd(32): Unable to open quota2 logging socket12-14 16:50:29.562: D/AndroIDRuntime(36): >>>>>> AndroIDRuntime START com.androID.internal.os.ZygoteInit <<<<<<12-14 16:50:29.562: D/AndroIDRuntime(36): CheckJNI is ON12-14 16:50:35.692: I/(37): ServiceManager: 0xf95812-14 16:50:35.692: I/audioflinger(37): Loaded primary audio interface from LEGACY Audio HW HAL (audio)12-14 16:50:35.692: I/audioflinger(37): Using 'LEGACY Audio HW HAL' (audio.primary) as the primary audio interface12-14 16:50:35.692: D/AudioHarDWareInterface(37): setMode(norMAL)12-14 16:50:35.702: I/CameraService(37): CameraService started (pID=37)12-14 16:50:35.712: D/EmulatedCamera_QemuClIEnt(37): Emulated camera List: 12-14 16:50:35.712: D/EmulatedCamera_FakeCamera(37): Initialize: Fake camera is facing back12-14 16:50:35.712: V/EmulatedCamera_Factory(37): 1 cameras are being emulated. Fake camera ID is 012-14 16:50:35.732: I/audioflinger(37): audioflinger's thread 0x10f60 ready to run12-14 16:50:35.732: W/audioflinger(37): Thread AudioOut_1 cannot connect to the power manager service12-14 16:50:35.742: I/AudioPolicyService(37): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)12-14 16:50:35.812: I/SurfaceFlinger(35): SurfaceFlinger is starting12-14 16:50:35.822: I/SurfaceFlinger(35): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...12-14 16:50:35.832: D/gralloc_goldfish(35): Emulator without GPU emulation detected.12-14 16:50:35.832: I/gralloc(35): using (fd=11)12-14 16:50:35.832: I/gralloc(35): ID           = 12-14 16:50:35.832: I/gralloc(35): xres         = 480 px12-14 16:50:35.832: I/gralloc(35): yres         = 800 px12-14 16:50:35.832: I/gralloc(35): xres_virtual = 480 px12-14 16:50:35.832: I/gralloc(35): yres_virtual = 1600 px12-14 16:50:35.832: I/gralloc(35): bpp          = 1612-14 16:50:35.832: I/gralloc(35): r            = 11:512-14 16:50:35.832: I/gralloc(35): g            =  5:612-14 16:50:35.832: I/gralloc(35): b            =  0:512-14 16:50:35.832: I/gralloc(35): wIDth        = 74 mm (164.756760 dpi)12-14 16:50:35.832: I/gralloc(35): height       = 123 mm (165.203247 dpi)12-14 16:50:35.832: I/gralloc(35): refresh rate = 260.42 Hz12-14 16:50:35.842: D/libEGL(35): Emulator without GPU support detected. Fallback to software renderer.12-14 16:50:35.842: D/libEGL(35): loaded /system/lib/egl/libGLES_androID.so12-14 16:50:35.862: I/SurfaceFlinger(35): EGL informations:12-14 16:50:35.862: I/SurfaceFlinger(35): # of configs : 812-14 16:50:35.862: I/SurfaceFlinger(35): vendor    : AndroID12-14 16:50:35.862: I/SurfaceFlinger(35): version   : 1.4 AndroID Meta-EGL12-14 16:50:35.862: I/SurfaceFlinger(35): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_NV_system_time 12-14 16:50:35.862: I/SurfaceFlinger(35): ClIEnt API: OpenGL ES12-14 16:50:35.862: I/SurfaceFlinger(35): EGLSurface: 5-6-5-0, config=0x012-14 16:50:35.862: I/SurfaceFlinger(35): OpenGL informations:12-14 16:50:35.862: I/SurfaceFlinger(35): vendor    : AndroID12-14 16:50:35.862: I/SurfaceFlinger(35): renderer  : AndroID PixelFlinger 1.412-14 16:50:35.862: I/SurfaceFlinger(35): version   : OpenGL ES-CM 1.012-14 16:50:35.862: I/SurfaceFlinger(35): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap 12-14 16:50:35.862: I/SurfaceFlinger(35): GL_MAX_TEXTURE_SIZE = 409612-14 16:50:35.862: I/SurfaceFlinger(35): GL_MAX_VIEWPORT_Dims = 4096 x 409612-14 16:50:35.862: I/SurfaceFlinger(35): flags = 000c000012-14 16:50:35.882: W/SurfaceFlinger(35): hwcomposer module not found12-14 16:50:36.082: D/libEGL(72): Emulator without GPU support detected. Fallback to software renderer.12-14 16:50:36.082: D/libEGL(72): loaded /system/lib/egl/libGLES_androID.so12-14 16:50:36.122: D/gralloc_goldfish(72): Emulator without GPU emulation detected.12-14 16:50:36.302: I/ARMAssembler(72): generated scanline__00000077:03010102_00000A01_00000000 [  9 ipp] (30 ins) at [0x40aa11e8:0x40aa1260] in 4108822 ns12-14 16:50:36.322: I/ARMAssembler(72): generated scanline__00000077:03545402_00000A01_00000000 [ 31 ipp] (52 ins) at [0x40aa1268:0x40aa1338] in 1259607 ns12-14 16:50:36.942: I/SamplingProfilerIntegration(36): Profiling Disabled.12-14 16:50:36.992: I/Zygote(36): preloading classes...12-14 16:50:37.012: D/dalvikvm(36): GC_EXPliCIT freed 36K, 81% free 406K/2048K, paused 1ms+2ms12-14 16:50:37.072: D/dalvikvm(36): GC_EXPliCIT freed 4K, 77% free 471K/2048K, paused 2ms+2ms12-14 16:50:37.152: D/dalvikvm(36): GC_EXPliCIT freed 18K, 76% free 505K/2048K, paused 1ms+1ms12-14 16:50:37.222: D/dalvikvm(36): GC_EXPliCIT freed 28K, 74% free 532K/2048K, paused 0ms+1ms12-14 16:50:37.253: D/dalvikvm(36): GC_EXPliCIT freed 15K, 72% free 573K/2048K, paused 1ms+1ms12-14 16:50:37.392: D/dalvikvm(36): GC_EXPliCIT freed 28K, 71% free 600K/2048K, paused 1ms+1ms12-14 16:50:37.582: D/TextLayoutCache(36): Using deBUG level: 0 - DeBUG Enabled: 012-14 16:50:37.612: D/dalvikvm(36): GC_EXPliCIT freed 25K, 70% free 631K/2048K, paused 1ms+1ms12-14 16:50:37.622: W/Zygote(36): Class not found for preloading: androID.media.AudioManager2-14 16:50:37.752: I/dalvikvm(36): threadID=1: recursive native library load attempt (/system/lib/libmedia_jni.so)12-14 16:50:37.752: D/MtpDeviceJNI(36): register_androID_mtp_MtpDevice12-14 16:50:37.752: I/dalvikvm(36): threadID=1: recursive native library load attempt (/system/lib/libmedia_jni.so)12-14 16:50:37.763: I/dalvikvm(36): threadID=1: recursive native library load attempt (/system/lib/libmedia_jni.so)12-14 16:50:37.763: W/MediaProfiles(36): Could not find media config xml file12-14 16:50:37.763: W/Zygote(36): Class not found for preloading: androID.media.IRemoteControlClIEntdispatcher12-14 16:50:37.763: W/Zygote(36): Class not found for preloading: androID.media.IRemoteControlClIEntdispatcher$Stub12-14 16:50:37.792: D/dalvikvm(36): GC_EXPliCIT freed 20K, 68% free 667K/2048K, paused 1ms+1ms12-14 16:50:38.202: D/dalvikvm(36): GC_FOR_ALLOC freed 216K, 53% free 962K/2048K, paused 19ms12-14 16:50:38.292: D/dalvikvm(36): GC_EXPliCIT freed 42K, 51% free 1017K/2048K, paused 2ms+1ms12-14 16:50:38.443: D/dalvikvm(36): GC_EXPliCIT freed 27K, 49% free 1046K/2048K, paused 3ms+2ms12-14 16:50:38.613: D/dalvikvm(36): GC_EXPliCIT freed 8K, 47% free 1094K/2048K, paused 1ms+2ms12-14 16:50:38.702: D/dalvikvm(36): GC_EXPliCIT freed 23K, 44% free 1160K/2048K, paused 2ms+3ms12-14 16:50:38.882: D/dalvikvm(36): GC_EXPliCIT freed 48K, 30% free 1439K/2048K, paused 2ms+3ms12-14 16:50:38.892: W/Zyg

解决方法:

我有一段时间遇到这个问题,但我发现我的模拟器目标对我的应用来说太高了.检查您的模拟器的API级别是否为清单中的< = androID:minSdkVersion.虽然不是一个非常有用的错误消息吗?!

总结

以上是内存溢出为你收集整理的Android模拟器加载但不加载程序?全部内容,希望文章能够帮你解决Android模拟器加载但不加载程序?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1114174.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存