question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Homebrew openjdk@8 installation failure on M1 Macs

See original GitHub issue

Information

  1. Apktool Version (apktool -version) - N/A
  2. Operating System (Mac, Linux, Windows) - macOS 11.2.3, M1 chip
  3. APK From? (Playstore, ROM, Other) - N/A

Steps to Reproduce

  1. brew install apktool

Output:

$ brew install apktool
==> Downloading https://homebrew.bintray.com/bottles/m4-1.4.18.arm64_big_sur.bottle.1.tar.gz
Already downloaded: /Users/lelandclemmons/Library/Caches/Homebrew/downloads/4b470a01ecb6ff156120cdde7e724d20140ac991221e6de3094b8223e4c33476--m4-1.4.18.arm64_big_sur.bottle.1.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/autoconf-2.71.arm64_big_sur.bottle.tar.gz
Already downloaded: /Users/lelandclemmons/Library/Caches/Homebrew/downloads/cbc5a82447caab8200a340468767d0f652e04f707412b3679a9e0f857f251b05--autoconf-2.71.arm64_big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2_3.arm64_big_sur.bottle.tar.gz
Already downloaded: /Users/lelandclemmons/Library/Caches/Homebrew/downloads/543cfd61e9f40f8244c8a3cd1ce4966e302327a5d83af48ccd69bc23d773eceb--pkg-config-0.29.2_3.arm64_big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.37.arm64_big_sur.bottle.tar.gz
Already downloaded: /Users/lelandclemmons/Library/Caches/Homebrew/downloads/6d1358d2e6b4577cc280ddaeabc8477ab68982f2faad020d431a31e53faaff26--libpng-1.6.37.arm64_big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/freetype-2.10.4.arm64_big_sur.bottle.tar.gz
Already downloaded: /Users/lelandclemmons/Library/Caches/Homebrew/downloads/acd4c39bf2c08ce6dd74711474e3411292fae2b5db57553d40165231d856bb8a--freetype-2.10.4.arm64_big_sur.bottle.tar.gz
Error: openjdk@8: no bottle available!
You can try to install from source with:
  brew install --build-from-source openjdk@8
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

From what I can tell, this is because the M1 chip needs it’s own special version of OpenJDK – might be worth documenting in the installation instructions for now: https://ibotpeaches.github.io/Apktool/install/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kittizzcommented, Apr 26, 2021

@Leland it’s working on my Mac mini M1 chip

just try download apktool jar file or build project don’t using brew install and install java 14 from oracle site.

it work for me haha

$ apktool -version
2.5.1-8a8cd6-SNAPSHOT
$ java -version
java version "14.0.2" 2020-07-14
Java(TM) SE Runtime Environment (build 14.0.2+12-46)
Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)

$ neofetch
                    'c.          kittiza@Kittithats-Mac-mini.local
                 ,xNMM.          ---------------------------------
               .OMMMMo           OS: macOS 11.2.3 20D91 arm64
               OMMM0,            Host: Macmini9,1
     .;loddo:' loolloddol;.      Kernel: 20.3.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 2 days, 12 hours, 13 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 1 (brew)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.8
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1920x1080
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Dark)
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: iTerm2
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: FiraCode-Retina 13
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Apple M1
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Apple M1
       .cooc,.    .,coo:.        Memory: 2244MiB / 16384MiB




0reactions
Pointycommented, Oct 6, 2022

Note that JDK 8 is required for a lot of projects. Substituting a newer JDK may be not an option for many projects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Homebrew : Error: openjdk@8: no bottle available
Error: openjdk@8: no bottle available! You can try to install from source with: brew install --build-from-source openjdk@8 Please note building ...
Read more >
Installing OpenJDK on M1 Macbook Pro - Sudaraka Jayathilaka
I recently got hold of a M1 MacBook Pro and was faced with the challenge of ... on project reachup-api: Fatal error compiling:...
Read more >
Install OpenJDK Java (8/11/17) versions using brew on Mac ...
brew install openjdk@8. Note: OpenJDK 8 is only available for x86_64 architecture, so you will get an error if you are on ARM...
Read more >
How can I install java openjdk 8 on High Sierra or newer macOS
Upon running brew cask install adoptopenjdk8. If you get this error. Error: Unknown command ...
Read more >
openjdk@8 - Homebrew Formulae
openjdk@8. Install command: brew install openjdk@8. Development kit for the Java programming language. https://openjdk.java.net/. License: GPL-2.0-only.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found