The vue project is packaged into apk environmental problems using cordova.

recently wrote a small demo, using vue to pack it into an apk practitioner, so I looked it up on the Internet, but found an error after checking the environment in cordova requirements . The message is as follows:

:

1sdk android-sdk_r24.4.1-windows.zip D:\android-sdk-windows;
2SDK Manager.exe

3. Configure the environment variable. Add a variable to the system variable: ANDROID_HOME : D:\ android-sdk-windows , and then follow the path path with % ANDROID_HOME%\ platform-tools;%ANDROID_HOME%\ tools;

after the environment variables are configured, execute cordova requirements and still report an error

Mar.23,2021

the hint should mean that you don't have an Android virtual machine installed. It doesn't matter. It's not necessary. In fact, I never use a virtual machine. I debug it with a real machine.


there are two problems:
1, route patterns cannot use history;
2, axios asynchronous requests have cross-domain problems;

solution reference

Menu