Tag Archives: Mobile terminal

The Vue mobile terminal cannot use string.replaceall, and the error message is blank

When developing Vue, the replaceall function is used, and there is no problem debugging on the PC side

However, when packaging and deploying to the mobile end test, it is found that some pages are blank and the console only displays error {}

After troubleshooting, the replaceall function reports an error. Replace it with replace

[screen recording] an error is reported in the screenrecord command: inaccessible or not found

[question]:

~ $ adb shell screenrecord /sdcard/test.mp4

/system/bin/sh: screenrecord: inaccessible or not found

This is because many mobile phones recycle the screenrecord function for safety, so we can’t use the command line for screen recording.

Through the ADB shell LS/system/bin/command, you can see LS:/system/bin// screenrecord: permission denied, indicating that you really don’t have screen recording permission.

Another easy-to-use screen recording method

Installation (MAC OS only):

brew install scrcpy

If there is no ADB, you need to install it first:

brew cask install android-platform-tools

Run scrcpy

After installation, connect the computer to the mobile phone and execute scrcpy to see the real-time projection of the mobile phone on the computer:

scrcpy

Recording screen

If you want to record the screen, execute one of the following two commands:

scrcpy --record test.mp4
scrcpy -r test.mp4

You can also record the screen without turning on the real-time image display:

scrcpy --no-display --record file.mp4
scrcpy -Nr file.mkv

more

For more details, see scrcpy (Chinese version – & gt; scrcpy)

Android studio installation virtual machine error ® HAXM installation failed.

Android studio virtual machine installation error

Intel ® HAXM installation failed. To install Intel ® HAXM follow the instructions found at: https://github.com/intel/haxm/wiki/Installation-Instructions-on-Windows

After consulting the online materials, it is said that the problems and solutions such as AMD processor and BIOS settings can be checked in this article

My computer is Huawei matebook13, which is definitely not a processor problem. Then I opened the official git address and found out the solution:

Open haxm official Git

 

Click download    haxm-windows_ v7_ 7_ 0.zip, unzip and install the EXE file inside.

After installation, look at Android studio and the problem is solved.