Could not create Android emulator: Failed to parse AVD config file

前端 未结 2 759
闹比i
闹比i 2021-01-06 00:16

Headless Linux 64-bit. Jenkins is trying to create android emulator but fails with these settings:

[android] Using Android SDK: /opt/android-sdk-linux
[andro         


        
相关标签:
2条回答
  • 2021-01-06 00:44

    I had faced the similar problem in Mac book pro 13", macOS Sierra; version 10.12.3. I deleted the system environment variables for location to android sdk & gradle previously which I added. When I built it with system environment variables; Jenkins downloaded the sdk & it run without failure.

    You can also refer to the book Expert Android Studio by Murat Yener, Onur Dundar chapter 10 : Continuous integration; where they showed how to build on Jenkins.

    0 讨论(0)
  • 2021-01-06 00:46

    I found temporary workaround for that:

    Create that same device locally (I did it on my personal laptop, a MAC) with Android AVD manager. Then copy this newly created device to Linux server /var/lib/jenkins/.android/avd/ folder (.ini and .avd folder).

    And it worked, also Google Maps is supported.

    0 讨论(0)
提交回复
热议问题