草庐IT

emulated

全部标签

android - 模拟器 : ERROR: x86 emulation currently requires hardware acceleration

我尝试在AndroidStudio中运行我的HelloWorld应用程序。我收到以下错误:Emulator:ERROR:x86emulationcurrentlyrequireshardwareacceleration!PleaseensureIntelHAXMisproperlyinstalledandusable.CPUaccelerationstatus:HAXkernelmoduleisnotinstalled!您能告诉我如何处理该错误吗? 最佳答案 根据thisresponse,完整的步骤是:1)打开SDK管理器(在And

android - 模拟器 : ERROR: x86 emulation currently requires hardware acceleration

我尝试在AndroidStudio中运行我的HelloWorld应用程序。我收到以下错误:Emulator:ERROR:x86emulationcurrentlyrequireshardwareacceleration!PleaseensureIntelHAXMisproperlyinstalledandusable.CPUaccelerationstatus:HAXkernelmoduleisnotinstalled!您能告诉我如何处理该错误吗? 最佳答案 根据thisresponse,完整的步骤是:1)打开SDK管理器(在And

android.os.FileUriExposedException : file:///storage/emulated/0/test. txt 通过 Intent.getData() 暴露在应用程序之外

当我尝试打开文件时,应用程序崩溃了。它在AndroidNougat下工作,但在AndroidNougat上它会崩溃。只有当我尝试从SD卡而不是系统分区打开文件时,它才会崩溃。一些权限问题?示例代码:Filefile=newFile("/storage/emulated/0/test.txt");Intentintent=newIntent(Intent.ACTION_VIEW);intent.setDataAndType(Uri.fromFile(file),"text/*");intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);startAc

android.os.FileUriExposedException : file:///storage/emulated/0/test. txt 通过 Intent.getData() 暴露在应用程序之外

当我尝试打开文件时,应用程序崩溃了。它在AndroidNougat下工作,但在AndroidNougat上它会崩溃。只有当我尝试从SD卡而不是系统分区打开文件时,它才会崩溃。一些权限问题?示例代码:Filefile=newFile("/storage/emulated/0/test.txt");Intentintent=newIntent(Intent.ACTION_VIEW);intent.setDataAndType(Uri.fromFile(file),"text/*");intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);startAc

android-emulator - 启动android模拟器而不启动Android Studio for flutter applications

是否有可能以flutterdoctor检测到它并且flutterrun应该能够部署到flutter代码的方式启动模拟器?我尝试了emulator-avd*imagename*但flutterdoctor无法检测到正在运行的模拟器并且flutterrun没有在模拟器上部署代码。 最佳答案 在记事本中键入以下内容并将其另存为“file_name.bat”并运行它:SETbuilddir=%~dp0SETEX="C:\Users\user_name\AppData\Local\Android\Sdk\emulator\emulator.e

android - 为什么我不能更改 Android 虚拟设备配置中的 "Emulated Performance: Graphics"设置?

我正在尝试使用AndroidStudio设置Flutter,并且我正在使用工具下的Android虚拟设备窗口设置虚拟设备。它在these中指定将EmulatedPerformance:Graphics设置更改为Hardware-GLES2.0的说明,但窗口不允许我将设置从Automatic更改。谁能解释一下我可以如何更改此设置?谢谢!截图: 最佳答案 在Pixel或Nexus5(x)等设备上运行的GooglePlay图片只能接受自动图形加速。因此,如果您不需要GooglePlay功能,则可以选择其他图片

linux - 没有 %gs 寄存器的 x86 子集 : binary patching code that uses %gs instead of trapping to emulation?

由于太复杂的原因无法在这里解释,我需要在x86的子集平台上运行x86GCC编译的Linux程序。该平台没有%gs寄存器,这意味着它必须被模拟,因为GCC依赖于%gs寄存器的存在。目前我有一个包装器,当程序试图访问%gs寄存器时捕获异常,并模拟它。但这是狗慢。有没有一种方法可以使用等效指令提前修补ELF中的操作码,从而避免陷阱和仿真? 最佳答案 您是否尝试过使用-mno-tls-direct-seg-refs选项编译您的代码?从我的GCC手册页(i686-apple-darwin10-gcc-4.2.1):-mtls-direct-s

在 Android Studio (Linux) 中启动时 Android Emulator 设备崩溃

当我启动该设备时,它崩溃了,并在AndroidStudio的控制台中显示了这个错误:emulator64-arm:../../../../../../../src/mesa/drivers/dri/i915/i915_fragprog.c:1225:i915BindProgram:Assertion`p->on_hardware==0'failed.当我使用Genymotion时,它会在没有任何错误通知的情况下被处理掉。 最佳答案 对于在AndroidStudio2.3.1或更高版本中启动后模拟器崩溃的秒数:打开Android虚拟设

PHP 使用 CURL : is there a way to emulate a cookie instead of saving it to a file?

我访问一个RESTapi服务,该服务使用一个名为session_id的变量。API要求将其存储在cookie中,我按如下方式完成此操作:$ch=curl_init();//initializecurlhandlecurl_setopt($ch,CURLOPT_URL,$url);//settargetURLcurl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);//allowredirectscurl_setopt($ch,CURLOPT_COOKIEFILE,'./Cookie.txt');curl_setopt($ch,CURLOPT_COOKIE

Android - 无法打开内容 : file:///storage/emulated/0

我有一个带有9-patch图像背景的小部件。图像保存在/sdcard/mydir/bgs中。当我尝试使用setImageViewUri方法加载图像时,出现以下错误:Unabletoopencontent:file:///storage/emulated/0/sdcard/mydir/bgs..然后...openfailed:EACCES(Permissiondenied)这仅出现在主屏幕上,并且仅适用于Nexus10和Nexus7(最新的启动器4.4不存在此错误)。我的应用程序上也有一些RemoteView,并且一切正常。我还在list中添加了READ_EXTERNAL_STORAGE