AdbWinUsbApi.dll(系统修复AdbWinUsbApi.dll文件遗失)是一款可以协助到诸位缺乏AdbWinUsbApi.dll文件的盆友,开展AdbWinUsbApi.dll文件不正确修补的DLL。该dll能够 解决载入AdbWinUsbApi.dll错误难题,找不着AdbWinUsbApi.dll的难题

一、Windows XP/WIN7系统,将AdbWinUsbApi.dll拷贝到C:/Windows/System32文件目录下。
二、随后开启"刚开始-运作-键入regsvr32 AdbWinUsbApi.dll",回车键就可以解决报错
如果确定这是安全的程序,可以使用正确的动态链文件覆盖之。如果是问题程序,不要擅自运行。
看好了那个dll扩展名的动态链名称,然后使用工具重新下载覆盖之。方法看教程。
方法一:
1、在同系统中找到此文件,黏贴到:C:\Windows\System32文件夹底下
2、打开CMD窗口输入如下命令注册一下所有的动态链:
for%1 in(%windir%\system32\*.dll) do regsvr32.exe/s%1回车执行
for%1 in(%windir%\system32\*.ocx) do regsvr32.exe/s%1回车执行
两条分别运行完成后重启机器。
方法二:使用工具,保持联网,输入动态链名称,自动更新替换。
参考资料《动态链修复工具DllFiles》
[mw_shl_code=java,true]package ei.workshop.monkey.service;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import com.android.monkeyrunner.adb.AdbBackend;
import com.android.monkeyrunner.core.IMonkeyDevice;
import com.android.monkeyrunner.core.TouchPressType;
/**
* MonkeyRunner的运行代理类,相关方法
*@see#connect(String)
*@see#touchDown(int, int)
*@see#touchUp(int, int)
*@see#type(String)
*@see#press(String)
*@see#startActivity(String)
*@see#drag(int, int, int, int)
*@see#dispose()
*@author"laladin.syd"
*
*/
public class RunnerProxy{
private IMonkeyDevice device;
private static AdbBackend adb;
public RunnerProxy(){
if(adb==null){
adb= new AdbBackend();//你看这个是不是你需要的,通过他可以连接到手机,然后可以对手机进行类似于豌豆荚的操作
}
}
/**
*连接设备,
*@param deviceID超时时间,应该尽可能短
*@return是否连接成功
*/
public boolean connect(String deviceID){
if(adb!= null){
device= adb.waitForConnection(5000,deviceID);
System.out.println("adb连接,得到device:"+deviceID+"="+device);
}
if(device==null) return false;
return true;
}
/**
*释放
*/
public void dispose(){
if(device!= null){
device.dispose();
device= null;
}
}
/**
*摸拟touch方法
*@param x坐标x
*@param y坐标y
*
*/
public void touch(int x, int y,String type){
if("DOWNANDUP".equals(type.toUpperCase())){
device.touch(x, y, TouchPressType.DOWN_AND_UP);
}else if("DOWN".equals(type.toUpperCase())){
device.touch(x, y, TouchPressType.DOWN);
}else if("UP".equals(type.toUpperCase())){
device.touch(x, y, TouchPressType.UP);
}
}
/**
*摸拟长按
*@param x坐标x
*@param y坐标y
*/
public void longTouch(int x, int y){
device.drag(x, y, x, y, 10, 2);
}
/**
*摸拟滑动超作
*@param x
*@param y
*@param endX
*@param endY
*/
public void drag(int x, int y, int endX, int endY){
device.drag(x, y, endX, endY, 10, 2);
}
/**
*摸拟滑动操作
*@param x
*@param y
*@param endX
*@param endY
*@param step
*@param ms
*/
public void drag(int x, int y, int endX, int endY,int step,int ms){
device.drag(x, y, endX, endY, 10, 2);
}
/**
*输入文本内容,PS:只支持英文
*@param value要输入的文本内容
*/
public void type(String value){
device.type(value);
}
/**
*同Touch方法,Down和UP连做
*@param keyCode
*/
public void press(String keyCode){
device.press(keyCode, TouchPressType.DOWN_AND_UP);
}
/**
*启动一个窗体
*@param component
*/
public void startActivity(String component){
String action="android.intent.action.MAIN";
Collection
categories.add("android.intent.category.LAUNCHER");
device.startActivity(null, action, null, null, categories,
new HashMap
}
} [/mw_shl_code]
相关攻略
相关专题
多特软件专题为您提供移动硬盘修复工具,wd移动硬盘修复工具,移动硬盘修复工具软件;安卓苹果版软件app一应俱全。多特软件站只提供绿色、无毒、无插件、无木马的纯绿色工具下载
多特软件专题为您提供英雄联盟辅助工具,英雄联盟辅助工具排行,英雄联盟辅助工具哪个好;安卓苹果版软件app一应俱全。多特软件站只提供绿色、无毒、无插件、无木马的纯绿色工具下载
多特软件专题为您提供硬盘测速工具,windows自带硬盘测速工具,硬盘测速工具怎么看;安卓苹果版软件app一应俱全。多特软件站只提供绿色、无毒、无插件、无木马的纯绿色工具下载
多特软件专题为您提供硬件检测工具,手机硬件检测工具,笔记本硬件检测工具;安卓苹果版软件app一应俱全。多特软件站只提供绿色、无毒、无插件、无木马的纯绿色工具下载
多特软件专题为您提供硬盘测试工具,固体硬盘测试工具,固态硬盘测试工具;安卓苹果版软件app一应俱全。多特软件站只提供绿色、无毒、无插件、无木马的纯绿色工具下载
同类排行
最近更新
更多分类