The article was recorded at the end of May 2021, and “as of now” in the following paragraphs refers to this date. Too much time apart, please find out if there is any content update.
-
Query the list of software currently supporting Silicon
You can view it at isapplesiliconready.com/
-
Silicon Info
To find out if your current software is running on native ARM64, download the software and open the application you want to query with a click
-
Android Studio Silicon
So far, there is only one version of Android Studio for Apple Silicon
Android Studio Arctic Fox (2020.3.1) Canary 15
Readers are advised to check for the updated version in the official website download archive. The address is:
Developer.android.com/studio/arch…
-
Azul AArch64 openJdk
Up to now, JDK adapted to Silicon includes:
- Microsoft has its
- Azul openjdk
I chose JDK1.8 of Azul, downloaded DMG from the official website and installed it directly.
Android Studio will be installed with jdK11 by default, so you will need to switch to your own jdK1.8 in your Settings as follows:
Android Studio – Prefences – Build,Execution,Deployment – Build Tools – Gradle – Gradle JDK
You can also choose to download JDK in the click window, which contains Azul’s, so you can also download it from Apple Silicon instead of the official website, but my network environment is very slow to download.
-
Arm Jdk 1.8 issues encountered
It is important to note that the ARM version of the JDK may encounter some special issues during compilation, such as the one I encountered in my project:
Failed to build on Apple M1 using JDK8-ARM64 and Jetpack-Room components
The abnormal information is as follows:
Java.lang.ExceptionInInitializerError
No native library found for darwin aarch64
Related articles of reference value on the Internet:
Github.com/xerial/sqli… Issuetracker.google.com/issues/1746…
My final solution:
Add the following to build. Gradle:
Allprojects {configurations. All {resolutionStrategy {force 'org.xerial: sqlite-JDBC :3.34.0'}}Copy the code
-
Homebrew Silicon
A tool for quickly installing other software with commands from a terminal, see this tutorial in great detail
Juejin. Cn/post / 692057…
You can install two chip versions, but I only have the ARM version so far
-
Git
No different from normal OS configuration, this tutorial is more detailed
www.jianshu.com/p/7edb6b838…