繁体   English   中英

无法在某些关闭的Genymotion设备上运行.apk

[英]Unable to run .apk on some off Genymotion devices

我使用Genymotion模拟Samsung Galaxy S7(API 23),然后安装手臂转换,并在重新启动设备后通过拖放安装我的应用程序。 但我收到以下错误:

Unfortunately, <application name> has stopped. 

这是终端日志:

Failed to connect to VM (TcpStream) for main host connection, IP:Port=192.168.56.101:25000!!!
OpenGPL connected to 192.168.56.101:25000
port 22468 will be used for OpenGL data connections

这是我运行设备和应用程序时的日志文件:

Mar 12 13:14:24 [Genymotion Player] [debug] Proxy configuration: no proxy used
Mar 12 13:14:24 [Genymotion Player] [debug] Host date and time: "12 Mar 2017 13:14:24 -0400"
Mar 12 13:14:24 [Genymotion Player] [debug] Proxy configuration: no proxy used
Mar 12 13:14:24 [Genymotion Player] [debug] GET  QUrl( "https://cloud.genymotion.com/content/video" ) 
Mar 12 13:14:24 [Genymotion Player] [debug] "Local socket created at path : /tmp/0054dd293a15aa9e4d99002d5631b4ca"
Mar 12 13:14:24 [Genymotion Player] [warning] ****  STARTING VIRTUAL DEVICE  ****
Mar 12 13:14:24 [Genymotion Player] [warning] Player version: "2.8.1"
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Loading "vboxmanage" plugin
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Plugin "vboxmanage" loaded
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Chipset: "GenuineIntel"
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] CPUID 0x1 (Intel): ECX= "c00e3bd"
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Path: "VBoxManage"
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Call: ("list", "hostinfo")
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Return code: 0
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] [System properties] Online physical CPU number: 2
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] [System properties] Online virtual CPU number: 2
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] [System properties] Max CPU number: 4
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] [System properties] Max memory size: 3953
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] get "vboxnet0" from host.only.interface
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] [findHostOnlyInterface] Looking for compatible host-only interface
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Call: ("list", "hostonlyifs")
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Return code: 0
Mar 12 13:14:24 [Genymotion Player] [warning] [VBox] [getSavedHostOnlyInterface] Checking "vboxnet0" interface status (  QHostAddress( "192.168.56.1" )  )
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] [getSavedHostOnlyInterface] "vboxnet0" Interface seems compatible
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Call: ("list", "dhcpservers")
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Return code: 0
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] [checkIfInterfaceHasValidDhcp] "HostInterfaceNetworking-vboxnet0" DHCP server is associated with "vboxnet0" interface
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] [checkIfInterfaceHasValidDhcp] "vboxnet0" interface is compatible
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Call: ("--version")
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Return code: 0
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] VM engine version: "4.3.36_Ubuntur105129"
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Call: ("showvminfo", "S7_API23")
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Return code: 0
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Call: ("guestproperty", "enumerate", "S7_API23")
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Return code: 0
Mar 12 13:14:24 [Genymotion Player] [debug] [VBox] Call: ("showvminfo", "S7_API23")
Mar 12 13:14:25 [Genymotion Player] [debug] [VBox] Return code: 0
Mar 12 13:14:25 [Genymotion Player] [debug] [VBox] Call: ("showvminfo", "S7_API23")
Mar 12 13:14:25 [Genymotion Player] [debug] [VBox] Return code: 0

但应用程序可以在HTC ONE(API 17)上成功运行。 有什么问题,我该如何解决? .apk来自游戏商店,因此apk文件正常。

有时,如果您的PC /笔记本电脑在cpu和ram中运行一周,并且在Windows运行android-studio和Genymotion时发生此错误,而我在2周前使用Genymotion,则此错误发生了很多次。

要修复此血腥错误,请执行以下步骤

1-尝试在BIOS中启用硬件虚拟化

2-尝试重新安装您的应用程序,这可能会有所帮助或尝试清除数据。

3-将您的vBox(虚拟盒子)更新为最新版本。

4-尝试将您的Genymotion更新到最新版本。

5倍的时间,当您使用另一个仿真器(例如Bluestacks)时,发生此错误,请尝试卸载Bluestakcs并使用一个仿真器或更改仿真器的端口。

如果它们都不起作用,请尝试使用其他仿真器,例如nox,andy等

希望对您有所帮助。

看来是arm-translation的问题。 我找到了应用程序apk的x86版本,可以将其安装在所有Genymotion设备上,而无需使用arm-translation进行刷新。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM