When I try to build my android workspace using Jenkins Build Now option, It will show the error like
[android] Cannot start Android emulator: Could not start AVD 'Nexus_4', as it could
not be found at 'C:\Windows\system32\config\systemprofile\.android\avd\Nexus_4.avd'
Recording test results
Finished: FAILURE
By default, directory for android avd is /users/user.name/.android
. How can I provide this avd path to Jenkins? It always try to search avd in above given Windows location automatically.
Note : I am using Windows-7 OS.
SYSTEM
profile path because Jenkins must be running as SYSTEM user. This you can verify when you will go toLog On
tab as described in my answer. – Lonilonier