How do you connect to the Android terminal when you use Android Studio on your MacBook?

Asked 2 years ago, Updated 2 years ago, 34 views

We are currently working on a project related to Tizen and Android. In the case of Tizen, you can connect remotely using SDB. In the case of Android Studio, is it possible to connect remotely with ADM or something? Or is there a way to connect it locally?

In the case of MacBooks, most of the results of Googleing say that they transfer files by connecting to a file transfer program called Android File Transfer? In this case, I'm asking you just in case it would be inconvenient to insert an .apk file every time.

android macbook connect

2022-09-22 15:40

1 Answers

For Android, you can install and debug APK by connecting to WiFi. (I'm not sure if I'm talking about this. - The method is the same for all platforms.)

The connection itself is not an Android studio, but a tool included in the Android SDK.

If you look at the following path, there is a program called adb.

Android SDK/platform-tools

After you move

cd Android SDK/platform-tools

When connecting for the first time, connect your smartphone with USB first, and in that state,

adbtcpip <Port number>

For example:

adb tcpip 5555

Now, after disconnecting the USB connection, you can run as follows and connect to your Android phone.

adb connection <IP address>:5555

The IP address must be the WiFi - IP address of the Android phone.

And then, if you deploy it from the Android studio, if it appears on the list of devices to be deployed, it's connected well.


2022-09-22 15:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.