While running the emulator code in Android Studio, I get
CreateProcess error=2, The system cannot find the file specified.
A brief snippet of the log has a section of message as below:
"Caused by: java.io.IOException: Cannot run program "C:\Users\m1013408\Downloads_f7df51368a33044a6377fe1c47947f07_SharingApp_elastic_search_starter\SharingApp_elastic_search_starter\caches\transforms-1\files-1.1\aapt2-3.3.2-5309881-windows.jar\f7d91a5259c0c7b5bbb75c07120738d5\aapt2-3.3.2-5309881-windows\aapt2.exe": CreateProcess error=2, The system cannot find the file specified"
The program, whose path is mentioned above, is available in the location when manually searched for. Apparently then I am wondering why is the system not able to find the file specified? I am however not sure if this is the cause of the error.
Additional info -
I have JDK 7 in my system and have provided the JDK's path in the project structure as well. Some of the solutions suggested this could be an issue. However, it does not seem so. I get this error despite the JDK path being mentioned correctly.
Look forward to a solution.