launch-on-device
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
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
Sprawdź dostępność ADB i połączenie urządzenia. Uruchom polecenie
which adbaby potwierdzić instalację, następnieadb devicesaby 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".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.Zainstaluj APK na urządzeniu poleceniem
adb install -r ./app/build/outputs/apk/lite/debug/app-lite-debug.apk. Flaga-rpozwala na zastąpienie istniejącej instalacji. Oczekiwany wynik to komunikat "Success".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".