# Fixing APK Analyzer terminal errors by selecting a compatible Java version

DevFeed: [Fixing APK Analyzer terminal errors by selecting a compatible Java version](<https://devfeed.tech/articles/apkanalyzer-error-32349.md>)

Original publisher: [Read original article](<https://dustn.dev/post/2021-12-12-issues-with-apkanalyzer/>)

Author: dustin@dustn.dev (Dustin Summers)

Published: 2021-12-12T10:26:38Z

Content type: tutorial

Language: en

Sources: [Dustin Summers](<https://devfeed.tech/sources/dustin-summers.md>)

Topics: [APK](<https://devfeed.tech/topics/apk.md>), [Java](<https://devfeed.tech/topics/java.md>), [CI/CD Pipeline](<https://devfeed.tech/topics/ci-cd-pipeline.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Google](<https://devfeed.tech/topics/google.md>)

Tags: [android-studio](<https://devfeed.tech/tags/android-studio.md>), [android-xmlschema-error-apkanalyzer-troubleshooting](<https://devfeed.tech/tags/android-xmlschema-error-apkanalyzer-troubleshooting.md>), [apk](<https://devfeed.tech/tags/apk.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [error](<https://devfeed.tech/tags/error.md>), [java](<https://devfeed.tech/tags/java.md>), [jdk](<https://devfeed.tech/tags/jdk.md>)

## AI overview

This tutorial addresses an APK Analyzer error encountered when running the tool from a terminal, including in a CI/CD workflow. It explains that Android Studio's bundled JDK may be incompatible and describes selecting another installed Java version, with guidance for making the change permanent.

## Source excerpt

Recently, I was tasked with using Google provided tools to decompile an APK in a CI/CD pipeline. This is great, because Google provides a tool called APK Analyzer, and provide tools both within the IDE itself and options to run it via the Command Line. I can talk more about the actual task later. For now, I want to discuss the issue that I first ran into when attempting to run apkanalyzer from the terminal.