我一直在尝试开发应用程序,并在虚拟机器上的Android x86上对它们进行测试。我遇到的问题是,它在打开蓝牙时挂起,而且从来没有真正打开过它。我使用的是macbook蓝牙。我已经在虚拟框上启用了它(旁边有个勾号)。我想知道有没有解决这个问题的方法,因为我没有Android手机来测试它。我使用的是Android x86 2.2。
我的日志猫:
I/ActivityManager( 2052): Starting activity: Intent { cmp=com.project.saff/.FaultScreenConnect }
I/ActivityManager( 2052): Displayed activity com.project.saff/.FaultScreenConnect: 189 ms (total 189 ms)
I/ActivityManager( 2052): Starting activity: Intent { act=android.bluetooth.adapter.action.REQUEST_ENABLE cmp=com.android.settings/.bluetooth.RequestPermissionActivity }
I/ActivityManager( 2052): Starting activity: Intent { act=com.android.settings.bluetooth.ACTION_INTERNAL_REQUEST_BT_ON cmp=com.android.settings/.bluetooth.RequestPermissionHelperActivity }
I/ActivityManager( 2052): Displayed activity com.android.settings/.bluetooth.RequestPermissionHelperActivity: 193 ms (total 198 ms)
I/ActivityManager( 2052): Displayed activity com.android.settings/.bluetooth.RequestPermissionActivity: 198 ms (total 198 ms)
D/BluetoothService( 2052): Bluetooth state 10 -> 11
V/BluetoothEventRedirector( 2147): Received android.bluetooth.adapter.action.STATE_CHANGED
I/bluedroid( 2052): Starting hciattach daemon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
D/dalvikvm( 2291): GC_EXPLICIT freed 1414 objects / 101976 bytes in 4ms
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
E/bluedroid( 2052): bt_enable: Timeout waiting for HCI device to come up
D/BluetoothService( 2052): Bluetooth state 11 -> 10
V/BluetoothEventRedirector( 2147): Received android.bluetooth.adapter.action.STATE_CHANGED
发布于 2011-11-14 07:50:15
安卓的x86模拟器,你可以在上面运行谷歌电视,目前只能在带有KVM-supported内核(在中支持英特尔虚拟化)的KVM linux上运行。目前不支持Windows和Mac OS X。
System reqs
发布于 2012-04-29 11:44:36
你没有说明你的Android X86镜像是从哪里得到的,所以我假设它是从www.android-x86.org获得的。此系统构建需要特定的硬件才能运行,即使您的硬件实际上是受支持的,它也可能无法通过Virtual Box运行。
有关实际测试的硬件列表,请参阅here。在我用Virtual Box测试的版本中,大部分都可以工作,但设备支持有限,例如摄像头、gps、蓝牙、wifi都不能工作(也无法打开)。有一个Android X86 on Virtual Box here的指南,还有一个this博客,描述了如何设置一些额外的选项,这样你就可以模仿实际设备的属性(比如手机的屏幕分辨率等)。
https://stackoverflow.com/questions/8115193
复制相似问题