Appium error: bundletool.jar cannot be found

I’ve installed Appium in Linux and MacOS and once I finished the installation I’ve ran appium-doctor to do a diagnostic for necessary dependencies. In both computers I got the same problem:

  • bundletool.jar cannot be found

I’ve tried a bunch of solutions proposed via Stack Overflow and similar sites, but I got no solutions. So investigating and doing different tests I was able to solve it using these steps:

  • Download bundletool.jar` from https://github.com/google/bundletool/releases
    • At this moment is bundletool-all-0.10.3.jar`
  • Rename it to bundletool.jar
  • Create folder ~/Library/Android/sdk/bundle-tool in Mac
    • ~/Android/Sdk/bundle-tool in Linux
  • Move bundletool.jar to this path and make it executable with chmod +x bundletool.jar
  • Add $ANDROID_HOME/bundle-tool to the path editing .bash_profile or .bashrc

Finally when you run appium-doctor you can see bundletool.jar is properly installed at found.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios .