Build Android from Command Line
Hi, I am building a game for android where I need the USB Host functionality. Since the USB port is blocked by my accessory I need to debug via TCPIP. The workflow with unity for this annoys me, since it destroys my adb server to somehow be unusable. So to install the app I have to build and run it from Unity, then quit the app, kill adb and restart it to get to the logcat.
I would like to avoid doing this all the time and write a script for this. Is there a way to build the apk from command line (I am using both Mac and Linux)? I could then install it with adb over TCPIP without deconnecting.
Your answer
![](https://koobas.hobune.stream/wayback/20220612085119im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Most of the people downloading my game from play store get this error "Failed to load IL2CPP". 0 Answers
Hardware & Software: What should I Do? 0 Answers
How can I detect Android device graphics capability? 0 Answers
hi all im trying to add fire stick to my shooter.. 0 Answers
Errors trying to build apk for Daydream mirage solo headset 0 Answers