Skip to content

apkanalyser which is part of cmdline-tools is able to run due to exception #11

@leroy0211

Description

@leroy0211

When running apkanalyzer it won't run and throws an exception.

Exception in thread "main" java.lang.IllegalStateException: The tools directory property is not set, please make sure you are executing apkanalyzer. Got /opt/android-sdk-linux/cmdline-tools
        at com.android.tools.apk.analyzer.ApkAnalyzerCli.getAaptInvokerFromSdk(ApkAnalyzerCli.java:271)
        at com.android.tools.apk.analyzer.ApkAnalyzerCli.main(ApkAnalyzerCli.java:128)

Expected behaviour

When running apkanalyzer it should show the help text of apk analyzer

Actual behaviour

It throws an exception.

Steps to reproduce the behaviour

  • run apkanalyzer (located in /opt/android-sdk-linux/cmdline-tools/bin/apkanalyzer)

Which Docker version is used?

Docker for mac desktop 24.0.6

Which host operation system is used?

  • Linux
  • Windows
  • macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions