MATLAB: Andorid Hardware Setup for HUAWEI P40

androidsimulink

I want to run a simulink model on my android phone following https://www.mathworks.com/help/supportpkg/android/examples/getting-started-with-android-devices.html . But in the androidhwsetup step, I meet with the following problem:
According to "What to Consider", I think it failed to build the test app on my computer, but I'm not particularly sure. So how to solve this problem?
What's more, my Android phone is HUAWEI P40.

Best Answer

If you are seeing “No matching files were found.” error in Verify Configuration screen during Hardware Setup for the Android Studio version 4.1 or above, then you may download a lower version of Android Studio from below archives link:
You may choose Android Studio 4.0.2 which was released on October 6, 2020 or any version below that.
During installation you may choose a different folder than the default location if you want to keep your existing Android Studio installation.
Once installation is complete, you may run hardware setup again using this newly installed Android studio and it should go through.