简体   繁体   English

GennyMotion虚拟设备无法启动,无法测试Android程序

[英]GennyMotion virtual device can't boot, cannot test Android program

I'm trying to develop Android Application for personal development. 我正在尝试为个人开发开发Android应用程序 I'm a newbie and I don't have any android devices, so I'm using an Android emulator . 我是新手,没有任何android设备,因此我使用的是Android 模拟器 I've tried to use BlueStacks that didn't work (and asked me to pay after one day), and I'm now using GenyMotion . 我曾尝试使用无法正常工作的BlueStacks (并要求我在一天后付款),现在我正在使用GenyMotion I'm trying to develop Android Application on a HP computer, Windows 10 OS, with 6GB RAM and an AMD Processor. 我正在尝试在配备6GB RAM和AMD处理器的HP计算机,Windows 10 OS上开发Android应用程序。

Here is my Android App, which is a very simple one, to test an emulator : 这是我的Android应用程序,它是一个非常简单的应用程序,用于测试模拟器:

package My.Package;

import android.*;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    { 
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        TextView text1 = new TextView(this);
        text1.setText("Hello World");
        setContentView(text1);
    }
}

The problem is that when I launch AVD that I created threw the AVD Manager, the emulator gets stuck on the "android" screen for hours. 问题是,当我启动创建的AVD时,将其扔给了AVD Manager,该模拟器在“ android”屏幕上停留了数小时。 I have an AMD processor, and not an Intel processor. 我有AMD处理器,没有Intel处理器。

I've tried GenyMotion , but when I launch the device I created with, the device is created but not launched. 我已经尝试了GenyMotion ,但是当我启动使用其创建的设备时,该设备已创建但未启动。

I've looked in VirtualBox and tried to launch it from Virtual Box, but I have the following error : 我查看了VirtualBox并尝试从Virtual Box启动它,但是出现以下错误:

错误

I've search on internet for a while, and I've found an answer about modifying the BIOS configuration, and to set the Virtualized Technology Active, which I did. 我已经在互联网上搜索了一段时间,并且找到了有关修改BIOS配置以及将“虚拟化技术”设置为“有效”的答案。 But I still have my error.I've enabled the VT-x/AMD-x setting in virtual box also. 但是我仍然有错误,我也在虚拟盒子中启用了VT-x / AMD-x设置。

Do you have any idea about how to fix this error, or how to use an Android emulator ? 您是否有关于如何解决此错误或如何使用Android模拟器的想法?

Didn't find an answer to this problem, but continued to try different configs and parameters, and finally succeded with a Nexus 5, Android 6.0 device with GenyMotion. 找不到此问题的答案,但继续尝试不同的配置和参数,最终成功使用配备GenyMotion的Nexus 5,Android 6.0设备。

It seems to be impossible to launch Android custom device from GenyMotion with my config. 用我的配置从GenyMotion启动Android自定义设备似乎是不可能的。

Effectivly, it is way more faster than with the Android Studio Virtual Devices. 实际上,它比使用Android Studio虚拟设备要快得多。

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

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