- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我很确定我已经安装了所有必要的设备。我创建了 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 35ms
12-14 16:33:05.214: I/dalvikvm-heap(539): Grow heap (frag case) to 15.801MB for 2073616-byte allocation
12-14 16:33:05.264: D/dalvikvm(539): GC_CONCURRENT freed 0K, 6% free 16095K/17095K, paused 4ms+5ms
12-14 16:33:05.594: D/dalvikvm(539): GC_FOR_ALLOC freed 1414K, 10% free 16481K/18119K, paused 41ms
12-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 PENDING
12-14 16:33:06.094: I/WindowManager(89): createSurface Window{41615788 SurfaceView paused=false}: DRAW NOW PENDING
12-14 16:33:06.194: D/dalvikvm(539): GC_FOR_ALLOC freed 425K, 5% free 17308K/18119K, paused 58ms
12-14 16:33:06.224: I/dalvikvm-heap(539): Grow heap (frag case) to 19.776MB for 2926096-byte allocation
12-14 16:33:06.354: D/dalvikvm(539): GC_FOR_ALLOC freed 5K, 4% free 20159K/20999K, paused 54ms
12-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+36ms
12-14 16:33:06.835: D/dalvikvm(539): GC_FOR_ALLOC freed 2025K, 14% free 18135K/20999K, paused 35ms
12-14 16:33:06.894: I/dalvikvm-heap(539): Grow heap (frag case) to 20.583MB for 2926096-byte allocation
12-14 16:33:07.085: D/dalvikvm(539): GC_CONCURRENT freed <1K, 13% free 20992K/23879K, paused 17ms+5ms
12-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: +42s215ms
12-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 -2
12-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:31
12-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=24m
12-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=240
12-14 16:50:28.234: I/qemu-props(31): receiving..
12-14 16:50:28.234: I/qemu-props(31): received: qemu.hw.mainkeys=1
12-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=back
12-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 up
12-14 16:50:28.313: I/Netd(32): Netd 1.0 starting
12-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 directory
12-14 16:50:28.443: E/Netd(32): Unable to open quota2 logging socket
12-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 ON
12-14 16:50:35.692: I/(37): ServiceManager: 0xf958
12-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 interface
12-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 back
12-14 16:50:35.712: V/EmulatedCamera_Factory(37): 1 cameras are being emulated. Fake camera ID is 0
12-14 16:50:35.732: I/AudioFlinger(37): AudioFlinger's thread 0x10f60 ready to run
12-14 16:50:35.732: W/AudioFlinger(37): Thread AudioOut_1 cannot connect to the power manager service
12-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 starting
12-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 px
12-14 16:50:35.832: I/gralloc(35): yres = 800 px
12-14 16:50:35.832: I/gralloc(35): xres_virtual = 480 px
12-14 16:50:35.832: I/gralloc(35): yres_virtual = 1600 px
12-14 16:50:35.832: I/gralloc(35): bpp = 16
12-14 16:50:35.832: I/gralloc(35): r = 11:5
12-14 16:50:35.832: I/gralloc(35): g = 5:6
12-14 16:50:35.832: I/gralloc(35): b = 0:5
12-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 Hz
12-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.so
12-14 16:50:35.862: I/SurfaceFlinger(35): EGL informations:
12-14 16:50:35.862: I/SurfaceFlinger(35): # of configs : 8
12-14 16:50:35.862: I/SurfaceFlinger(35): vendor : Android
12-14 16:50:35.862: I/SurfaceFlinger(35): version : 1.4 Android META-EGL
12-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 ES
12-14 16:50:35.862: I/SurfaceFlinger(35): EGLSurface: 5-6-5-0, config=0x0
12-14 16:50:35.862: I/SurfaceFlinger(35): OpenGL informations:
12-14 16:50:35.862: I/SurfaceFlinger(35): vendor : Android
12-14 16:50:35.862: I/SurfaceFlinger(35): renderer : Android PixelFlinger 1.4
12-14 16:50:35.862: I/SurfaceFlinger(35): version : OpenGL ES-CM 1.0
12-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 = 4096
12-14 16:50:35.862: I/SurfaceFlinger(35): GL_MAX_VIEWPORT_DIMS = 4096 x 4096
12-14 16:50:35.862: I/SurfaceFlinger(35): flags = 000c0000
12-14 16:50:35.882: W/SurfaceFlinger(35): hwcomposer module not found
12-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.so
12-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 ns
12-14 16:50:36.322: I/ARMAssembler(72): generated scanline__00000077:03545402_00000A01_00000000 [ 31 ipp] (52 ins) at [0x40aa1268:0x40aa1338] in 1259607 ns
12-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+2ms
12-14 16:50:37.072: D/dalvikvm(36): GC_EXPLICIT freed 4K, 77% free 471K/2048K, paused 2ms+2ms
12-14 16:50:37.152: D/dalvikvm(36): GC_EXPLICIT freed 18K, 76% free 505K/2048K, paused 1ms+1ms
12-14 16:50:37.222: D/dalvikvm(36): GC_EXPLICIT freed 28K, 74% free 532K/2048K, paused 0ms+1ms
12-14 16:50:37.253: D/dalvikvm(36): GC_EXPLICIT freed 15K, 72% free 573K/2048K, paused 1ms+1ms
12-14 16:50:37.392: D/dalvikvm(36): GC_EXPLICIT freed 28K, 71% free 600K/2048K, paused 1ms+1ms
12-14 16:50:37.582: D/TextLayoutCache(36): Using debug level: 0 - Debug Enabled: 0
12-14 16:50:37.612: D/dalvikvm(36): GC_EXPLICIT freed 25K, 70% free 631K/2048K, paused 1ms+1ms
12-14 16:50:37.622: W/Zygote(36): Class not found for preloading: android.media.AudioManager$2
12-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_MtpDevice
12-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 file
12-14 16:50:37.763: W/Zygote(36): Class not found for preloading: android.media.IRemoteControlClientDispatcher
12-14 16:50:37.763: W/Zygote(36): Class not found for preloading: android.media.IRemoteControlClientDispatcher$Stub
12-14 16:50:37.792: D/dalvikvm(36): GC_EXPLICIT freed 20K, 68% free 667K/2048K, paused 1ms+1ms
12-14 16:50:38.202: D/dalvikvm(36): GC_FOR_ALLOC freed 216K, 53% free 962K/2048K, paused 19ms
12-14 16:50:38.292: D/dalvikvm(36): GC_EXPLICIT freed 42K, 51% free 1017K/2048K, paused 2ms+1ms
12-14 16:50:38.443: D/dalvikvm(36): GC_EXPLICIT freed 27K, 49% free 1046K/2048K, paused 3ms+2ms
12-14 16:50:38.613: D/dalvikvm(36): GC_EXPLICIT freed 8K, 47% free 1094K/2048K, paused 1ms+2ms
12-14 16:50:38.702: D/dalvikvm(36): GC_EXPLICIT freed 23K, 44% free 1160K/2048K, paused 2ms+3ms
12-14 16:50:38.882: D/dalvikvm(36): GC_EXPLICIT freed 48K, 30% free 1439K/2048K, paused 2ms+3ms
12-14 16:50:38.892: W/Zyg
最佳答案
我有一段时间遇到这个问题,但我发现我的模拟器目标对我的应用程序来说太高了。检查您的模拟器的 API 级别 <= android:minSdkVersion 在您的 manifest 中。虽然不是很有用的错误消息,对吧?!
关于Android模拟器加载但不是程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8499813/
我使用 iOS 4.2 和 Xcode 3.2.5 创建了一个通用二进制文件。我正在尝试对应用程序进行一些自动化测试,由于 iPad 和 iPhone 版本之间的界面略有不同,因此我有单独的 UIAu
这是一个概念性的问题。如果有人能澄清背后的故事,那就太好了。 我了解模拟器和模拟器之间的区别。 模拟器:模仿设备环境(硬件、网络功能等)。与设备相比,我们更有可能得到非常接近的结果。 模拟器:使用正在
是否有任何现成的解决方案可以模拟或模拟 LDAP 服务器功能? 或者是否可以在 ubuntu 上安装 ldap 服务器(仅适用于 localhost)? 如果它不是来自 localhost 的 jsu
我正在将我的应用程序修复为通用二进制文件。模拟器上的测试似乎默认使用 iPad。对于诸如检查方向和小型 UI 更新之类的小修正,我能找到的获取 iPhone 版本的唯一方法是插入我的 iPhone 并
Emulator: emulator: WARNING: Could not connect to proxy at ::1:8080: Unknown error ! - Android 将 And
我的应用程序在 ios 4.3 模拟器中运行良好,但在 ios 5 模拟器中运行不佳。我的 iPhone 上有 ios 5,我的应用程序确实可以在 iPhone 上运行。 该应用在所有这三种环境中都可
我在 azure 上制作了移动应用程序,并将其快速启动为 xamarian.forms,并且(在未能发布下载的表 api 应用程序并决定在浏览器中编辑它之后)下载了他们提供的客户端应用程序。然后,当我
Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration! Emulator: Process
我试图在 iOS 10.3 模拟器上将任意文件从我的应用程序的沙箱保存到 iCloud Drive。 iCloud Drive 已启用并且我已登录。如果我在模拟器上打开 iCloud Drive 应用
有谁知道一个小型、快速、支持 DOM 层的 javascript 模拟器?在 C/C++ 中? 问题:我需要在爬虫应用程序中对 javascript 的基本支持,并且想知道除了以下选项之外是否还有其他
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
我是 Xcode 开发新手。我在基于 Lion 的 Mac 上安装了 Xcode 4.3.1,并取消设置 ~/Library 上的隐藏标志。 我在这里读到了有关 iPhone/iPad 模拟器的信息
我已在 VisualStudio 2015 AZURE SDK 2.9、C# 中创建辅助角色 我在每个方法的开头添加了断点: public override void Run() {
全部。我已经安装了 Azure SDK 1.7。解决方案中的所有程序集都是使用“任何 CPU”设置进行编译的。但是当我在我的计算机上的 Azure 模拟器中启动解决方案时,其中之一失败了。该错误非常奇
有没有独立的 WAP 模拟器来模拟诺基亚 6600 和索尼爱立信 MIDP 手机的 waop 网站? 我正在创建一个 WAP 门户,我不想每次都将所有文件上传到网络上,然后将其加载到 Opera Mi
我已经安装了 Tizen 的 Visual Studio Code 扩展,并且(看起来)进展顺利。 但是,当我启动 Tizen 模拟器管理器时,我没有安装任何平台,并且当我尝试安装平台时,没有可用的平
我目前正在我的 jquery mobile/phonegap 应用程序中处理表单。在此表单中,我有两个选择列表。它们在我的桌面浏览器(firefox、safari、chrome)中都能正常工作。 奇怪
我尝试制作一个分辨率为 480x480 像素的模拟器。但是模拟器永远不会完成启动。它卡在 Android Logo 页面上。分辨率有限制吗? 最佳答案 模拟器 is not smart about s
我不知道如何在虚拟设备上启用快照功能。该选项是灰色的,创建或编辑虚拟设备时没有设置。我使用的是最新版本的 SDK 工具修订版 22.6.3 这是我的窗口的样子:Create new Android V
我正在尝试使用具有特定屏幕分辨率的模拟器,但是当我将屏幕参数设置为我需要的参数时,键盘消失了。这样我就没有后退按钮,主页按钮..任何想法如何解决这个问题?这是我在 AVD 管理器中设置的:屏幕分辨率:
我是一名优秀的程序员,十分优秀!