- Download SDK tools : [Google Download]
- JAVA_HOME environnement variable set to a valid JRE (or JDK).
Extract SDK tool and launch :
./sdkmanager "platforms;android-26"
Accept licence and wait download to finish.
📌 The licenses and plateforms folders should appear in the root directory (alongside tool folder)
SDK directory structure :
SDK tools
└───tools
│ │ sdkmanager
│ │ ...
│
└───licence
│ │ licence.txt
│
└───platform
│ android-26
│ ...
Configure Intellij by adding SDK directory in the Project Structure.
Create the android project 👍
Android SDK > SDK Tools > Android SDK Platform-tools (contain adb utility)
Use hardware debuging with GNU/Linux :
apt-get install android-tools-adb # Community package with udev rules for all android device
sudo usermod -aG plugdev $LOGNAME # Add current user in the plugdev group
Firstly, you can see if your host detect your device with lsusb
.
Then, you can see your device with adb devices
.
If problem persist, disconnect and reconnect device and start/stop adb server.
adb kill-server
adb start-server
You can't run multiple instance of adb on the same host. If you debug you app on a smartphone (throught Android Studio) make sure to kill any adb server running in the background.
You must also configure your device with :
- debugging USB enabled
- set USB mode to MTP (or PTP)