Reputation: 103
Settings for Android Emulator when it fails
[android] Using Android SDK: /opt/android-sdk-linux
[android] Creating Android AVD: /var/lib/jenkins/.android/avd/hudson_en-US_120_WVGA_Google_Inc._Google_APIs_23_google_apis-armeabi-v7a.avd
[android] /opt/android-sdk-linux/tools/android create avd -f -a -s WVGA800 -n hudson_en-US_120_WVGA_Google_Inc._Google_APIs_23_google_apis-armeabi-v7a -t "Google Inc.:Google APIs:23" --abi google_apis/armeabi-v7a
[android] Could not create Android emulator: Failed to parse AVD config file
But as soon as I am entering Android OS Version to: 6.0 . It will succeed to create new emulator and it runs.
My requirement is that is need Google Maps support for emulator.
Upvotes: 3
Views: 2829
Reputation: 79
Install required libraries for 64-bit machines:
If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32bz2-1.0
If you are running 64-bit Fedora, the command is:
sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
source : https://developer.android.com/studio/install.html
Upvotes: 2
Reputation: 1172
I'm having the same issue, and it was a matter of permissions. I installed all the android sdk dependencies from a ssh console with user "console_user", and then Jenkins was triying to run the tools with user "jenkins". The solution comes in various steps:
Add group write permissions to the android sdk home dir and all the subdirectories:
chmod g+w $ANDROID_HOME -R
.
Hope this helps or at least give you an advice.
Upvotes: 1