tns 运行 android 显示颜色而不是实际应用

tns run android displays colours instead of actual application

我正在学习如何通过 https://docs.nativescript.org/angular/tooling/android-virtual-devices 设置 android 模拟器的教程。

我运行这些命令

Change into the tools bin dir
: cd /usr/local/android/sdk/tools/bin
: sudo chmod +x

Install system images (must be done as root)
: sudo ./sdkmanager "system-images;android-25;google_apis;x86"
: sudo ./sdkmanager --licenses
Say 'y' to all
: sudo touch ~/.android/repositories.cfg

List available Android Virtual Devices to install (done as user)
: ./avdmanager list
: ./avdmanager create avd -n test -k "system-images;android-25;google_apis;x86"

Now I get the following when I list through avdmanager
: ./avdmanager list avd
: Available Android Virtual Devices:
:     Name: test
:     Path: /root/.android/avd/test.avd
:   Target: Google APIs (Google Inc.)
:           Based on: Android 7.1.1 (Nougat) Tag/ABI: google_apis/x86

Now try and run the android emulator
: cd ~/code/MyApp
: tns run android

启动后,Android 模拟器确实会在我的 Debian 8 瘦客户端上启动,但它会像附件中的图像一样显示。

更新:运行 通过 Android Studio

结果一样。我在命令行中也得到了这种类型的结果 运行。有趣的是,当它看起来像这样时,您实际上可以单击按钮并仍然使用它,尽管它毫无用处。

更新:可以运行通过X2go

我运行今天使用同一台服务器进行了远程测试,我可以通过X2go远程登录软件运行模拟器,但不是在瘦客户端上。我开始认为这是 LTSP(瘦客户端)下 运行ning android 模拟器的一个特定问题。

因为我是 运行 瘦客户端上的模拟器,所以我似乎无法使用 3d 硬件加速,所以我设法通过以下命令将其关闭,模拟器现在可以工作了还不错。

$ANDROID_HOME/emulator/emulator -avd test -gpu guest

我也在使用 i3 平铺 windows 管理器,不得不强制浮动在此 window;

# Set floating windows
for_window [title="Android Emulator - test:5554"] floating enable