There is a cordova project developed using Visual Studio - Tools for Apache Cordova (TACo).
While building the project for iOS target, we are able to get the build and debug successfully, on simulator as well on real iOS device.
But while building the same for Android target, it is working with Ripple browser emulators but it is not working with Android emulator or Android real devices.
I have tried updating environment variables manually as well through VS > Tools > Options > Tools for Apache Cordova > Environment Variables Overrides
option, which includes
- ADT_HOME /* This is basically android path */
- ANT_HOME
- GIT_HOME
- JAVA_HOME
I have also verified ANDROID_PATH environment variable value in System Variables, and checked in command prompt using "echo %ANDROID_HOME%", it prints: C:\Program Files (x86)\Android\android-sdk;
VS > Tools > Options > Tools for Apache Cordova > Environment Variables Overrides
Require guidance where should the change is required.
Here is the Build error log:
MSBUILD : cordova-build error : Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable. Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable. (TaskId:10) Done executing task "MdaVsCli" -- FAILED. (TaskId:10)
Done building target "BuildMDA" in project “MyProjectName.jsproj" -- FAILED.: (TargetId:11)
Project Performance Summary: 4704 ms C:\MyProjectDir\MyProjectName.jsproj 1 calls 4704 ms build 1 calls