Android 工具之androidscreencast

Mac OS X 安装Maven:

  • 下载 Maven, 并解压到某个目录。例如/Users/robbie/apache-maven-3.3.3

  • 打开Terminal,输入以下命令,设置Maven classpath

     $ vi ~/.bash_profile

    添加下列两行代码,之后保存并退出Vi

     export M2_HOME=/Users/robbie/apache-maven-3.3.3
     export PATH=$PATH:$M2_HOME/bin

bash_profile
  • 输入命令以使bash_profile生效

     $ source ~/.bash_profile
  • 输入mvn -v查看Maven是否安装成功

 

参考地址:

https://github.com/xSAVIKx/AndroidScreencast

Building and running from source

This project requires at least Java 8.

After cloning the project, run mvnw install.

The resulting artifacts will be created in the target subdirectory.

You can run the executable jar via java -jar target/androidscreencast-VERSION-executable.jar, replacing VERSION with the current version.

For example, java -jar target/androidscreencast-0.0.10s-executable.jar.

Additionally OS-packages would be created with ADB executables bundled:

  • androidscreencast-VERSION-windows.zip
  • androidscreencast-VERSION-linux.tar.gz
  • androidscreencast-VERSION-macosx.tar.gz

In order to provide correct configuration see configuration section.

 

 

 

 Androidscreencastcase 一个 Java Web Start application,适用于 Windows/Linux/MacOS 平台控制任何Android 设备(包括模拟器和真机),通过 USB连接就可实现鼠标键盘控制你的 android.可以录像,在 TP LCD没有调试好的情况下也可调试真机。

 

启动方法 :首先下载androidscreencast.jnlp

直接在终端运行$ javaws androidscreencast.jnlp

Troubleshooting :如果出现下面的情况,需要重启 adb

yuao@yuao-desktop:~$ javaws androidscreencast.jnlp

58:34 E/DeviceMonitor: Connection attempts: 1

58:35 E/DeviceMonitor: Connection attempts: 2

58:36 E/DeviceMonitor: Connection attempts: 3

58:37 E/DeviceMonitor: Connection attempts: 4

58:38 E/DeviceMonitor: Connection attempts: 5

58:39 E/DeviceMonitor: Connection attempts: 6

58:40 E/DeviceMonitor: Connection attempts: 7

58:41 E/DeviceMonitor: Connection attempts: 8

58:42 E/DeviceMonitor: Connection attempts: 9

58:43 E/DeviceMonitor: Connection attempts: 10

58:44 E/DeviceMonitor: Connection attempts: 11

58:44 E/adb: Cannot start adb when AndroidDebugBridge is created without the location of adb

 

$ adb start-server

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值