No toolchains found in the NDK toolchains folder for ABI with prefix: mips64
最后看到一篇解决办法:
https://blog.csdn.net/qq_24118527/article/details/82867864
https://www.jianshu.com/p/fd3d49c7f1f8
但是发现自己的sdk下没有那个文件夹…后来发现是被隐藏了,最后根据文章2配置完成。

Grant current user access to /dev/kvm
https://pagespeed.v2ex.com/t/452230
解决创建Android模拟器时提示”No system images installed for this target”的问题
https://www.cnblogs.com/yc-755909659/p/4080645.html
Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
https://blog.csdn.net/langzxz/article/details/80933515?utm_source=blogxgwz0

模拟器

genymotion的安装和破解 我还没有试过
https://www.jianshu.com/p/67b4e71380d1

This user doesn’t have permissions to use KVM (/dev/kvm)
https://www.bbsmax.com/A/o75N8469zW/

  1. groupadd kvm
  2. usermod -G kvm -a dwh
  3. echo 'KERNEL=="kvm",GROUP="kvm",MODE="0660"' >> /etc/udev/rules.d/androidUseKVM.rules
  4. 这三条命令的作用分别是:
  5. #创建用户组kvm
  6. #将用户dwh添加到kvm用户组
  7. #开机时自动赋予用户组kvm拥有0660的权限

avd manage 的按钮是灰色的:
SDK里面下载那个ARM EABI v7a System Image

dev/kvm is not found
去BIOS界面,把INTEL virtul 什么的设置为enable

Failed to launch emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT
https://bbs.csdn.net/topics/390952635
https://stackoverflow.com/questions/39645178/panic-broken-avd-system-path-check-your-android-sdk-root-value

  1. PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT
  2. PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value

These 2 errors happen if the emulator cannot find the SDK, or the SDK is broken.

So, first of all I recommend to remove the ANDROID_SDK_ROOT variable at all. It’s only needed when the emulator is located outside of the SDK directory. But in general, your emulator stays inside the SDK dir. And in this case it must detect the SDK location automatically. If it doesn’t, then your SDK probably has wrong filetree. Please do the following:

  1. Check that the SDK directory has at least these 4 directories: emulator, platforms, platform-tools, system-images. It is very important! These directories must be present. If some of them don’t exist, then just create empty dirs.

  2. Go to <user_home>/.android/avd/<avd_name> and open config.ini. Find the image.sysdir.1 property. It points at the directory, inside the SDK directory, that contains the actual system image. Make sure that this directory exists and contains files like build.prop, system.img, etc. If it doesn’t, then you have to open the SDK Manager and download system images your AVD requires (see below).

If everything’s set up properly, when these errors about ANDROID_SDK_ROOT must be gone. If they’re not, then now you may try to set up ANDROID_SDK_ROOT variable.

在sdk的根目录下创建一个 system-images 文件夹

  1. Windows中增加一个名为ANDROID_AVD_HOME指向%USERPROFILE%.android\avd
    set ANDROID_AVD_HOME=%USERPROFILE%.android\avd

  2. Linux中增加一个名为ANDROID_AVD_HOME指向$HOME/.android/avd
    export ANDROID_AVD_HOME=$HOME/.android/avd

  3. Macosx中增加一个名为ANDROID_AVD_HOME指向$HOME/.android/avd
    export ANDROID_AVD_HOME=$HOME/.android/avd

flutter 踩坑 - 图1
我的环境变量
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:/home/ncuhome/flutter/bin
export ANDROID_HOME=/home/ncuhome/Android/Sdk
export ANDROID_SDK=/home/ncuhome/Android/Sdk
export ANDROID_SDK_ROOT=/home/ncuhome/Android/Sdk
export ANDROID_HOME=/opt/android-studio
export ANDROID_AVD_HOME=$HOME/.android/avd