google / android-emulator-m1-preview

Apache License 2.0
1.83k stars 161 forks source link

how can I make it work with IDEA with Android plugins? #36

Open jasonj99 opened 3 years ago

jasonj99 commented 3 years ago

Hi, the emulator works well on Android Studio on M1, but I prefer to use IntelliJ IDEA with Android plugins at this time just because the IDEA runs natively on my M1 Macbook Air.

Is there any help on how to make IDEA and the preview emulator works together ?

Thanks.

ColtonIdle commented 3 years ago

Android Studio stable and canary runs natively on my m1 macbook.

jasonj99 commented 3 years ago

Android Studio stable and canary runs natively on my m1 macbook.

Really? I have downloaded android-studio-2020.3.1.10-mac, android-studio-ide-202.7188722-mac, and the lastest stable from the official website, none of it runs natively. So where is the link to download stable and canary build for apple silicon mac ?

hannesa2 commented 3 years ago

Android Studio stable and canary runs natively on my m1 macbook.

image image

This is not native ! image

ColtonIdle commented 3 years ago

Here's a screenshot of my setup.

Showing I have an M1

Showing no rosetta installed (unless I'm missing something)

Showing my single arm64 emulator

SHowing AS stable

showing my app running from stable on the emulator

https://imgur.com/a/Jzw7ypi

nickdonnelly commented 3 years ago

@ColtonIdle that apple discussions post is from 2011. That's for Rosetta 1, not Rosetta 2.

Android studio doesn't currently run natively on the M1.

ColtonIdle commented 3 years ago

@nickdonnelly sorry about that. I did caveat that I could be missing something here. New to my m1 machine. 😄

nickdonnellyriis commented 3 years ago

@nickdonnelly sorry about that. I did caveat that I could be missing something here. New to my m1 machine. smile

No worries, aren't we all! Android studio still definitely needs some love on Apple Silicon.

betterlmy commented 3 years ago

I have the same issue , avd cant work while I am using the IDEA

jasonj99 commented 3 years ago

Replace the sqllite-jdbc-3.x.x.x.jar with a later version, such as sqllite-jdbc-3.32.3.3.jar, solve the problem (there are two sqllite-jdbc-3.x.x.x.jar to be replaced, one is at Contents/lib, the other is at Contents/plugins/svn4idea/lib). Now I can debug Android App inside IDEA.

betterlmy commented 3 years ago

Replace the sqllite-jdbc-3.x.x.x.jar with a later version, such as sqllite-jdbc-3.32.3.3.jar, solve the problem (there are two sqllite-jdbc-3.x.x.x.jar to be replaced, one is at Contents/lib, the other is at Contents/plugins/svn4idea/lib). Now I can debug Android App inside IDEA.

I update my idea today, and it can work normally

ghost commented 3 years ago

@jasonj99 I can run both IntelliJ and Android Studio Canary natively on my M1. In IDEA, I am able to launch the emulator like you usually would be able to.

image
ColtonIdle commented 3 years ago

@D1stinct what theme is that?

ghost commented 3 years ago

@D1stinct what theme is that?

Material UI