How To Set Path In Jenkins For Directory Having Android Avd?
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
Solution 1:
If your command runs fine on Win command prompt as user 'X', then you should run Jenkins with the same user.
This can be achieved by performing following steps: 1. Run > services.msc (Enter)
2. Select Jenkins service. Right-click and select Properties
3. Click on Log On
tab
4. Select user 'X' and provide credentials
5. Restart Jenkins
In your case, the user 'X' seems to be user.name since the path to AVD as mentioned by you is /users/user.name/.android
Post a Comment for "How To Set Path In Jenkins For Directory Having Android Avd?"