Toolverse
All skills

launch-on-device

by zly2006

Build, install, and launch the Zhihu++ Android app on a connected device using ADB. Includes comprehensive troubleshooting for common issues like missing devices, installation failures, signature mismatches, and app crashes. Use when deploying debug builds to physical devices or

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
zly2006
Category
Mobile
Views
1

About this skill

Build, install, and launch the Zhihu++ Android app on a connected device using ADB. Includes comprehensive troubleshooting for common issues like missing devices, installation failures, signature mismatches, and app crashes. Use when deploying debug builds to physical devices or emulators.

How to use

  1. Sprawdź dostępność ADB i połączenie urządzenia. Uruchom polecenie which adb aby potwierdzić instalację, następnie adb devices aby wyświetlić listę podłączonych urządzeń. Upewnij się, że debugowanie USB jest włączone na urządzeniu i pojawia się na liście jako "device".

  2. Przejdź do katalogu projektu Zhihu++ i zbuduj wariant lite debug APK poleceniem ./gradlew assembleLiteDebug --quiet. Plik APK zostanie wygenerowany w ścieżce ./app/build/outputs/apk/lite/debug/app-lite-debug.apk.

  3. Zainstaluj APK na urządzeniu poleceniem adb install -r ./app/build/outputs/apk/lite/debug/app-lite-debug.apk. Flaga -r pozwala na zastąpienie istniejącej instalacji. Oczekiwany wynik to komunikat "Success".

  4. Uruchom aplikację na urządzeniu poleceniem adb shell am start -n com.github.zly2006.zhplus.lite/com.github.zly2006.zhihu.MainActivity. Aplikacja powinna się otworzyć na ekranie urządzenia, a terminal wyświetli potwierdzenie "Starting: Intent".

Related skills