针对尝试在Windows7上运行USBdebugging的问题和Android这两个问题,本篇文章进行了详细的解答,同时本文还将给你拓展android–adb.exe挂在Windows7上、andro
针对尝试在Windows 7上运行USBdebugging的问题和Android这两个问题,本篇文章进行了详细的解答,同时本文还将给你拓展android – adb.exe挂在Windows 7上、android – 在Windows 7上的ASUS Memo Pad FHD 10(ME302KL)上进行USB调试的驱动程序、android – 如何在Windows 7上安装Nexus One的USB驱动程序以进行调试?、Debugging Chromium on Windows等相关知识,希望可以帮助到你。
本文目录一览:- 尝试在Windows 7上运行USBdebugging的问题(Android)(win7尝试使用sysprep处理计算机时出现错误)
- android – adb.exe挂在Windows 7上
- android – 在Windows 7上的ASUS Memo Pad FHD 10(ME302KL)上进行USB调试的驱动程序
- android – 如何在Windows 7上安装Nexus One的USB驱动程序以进行调试?
- Debugging Chromium on Windows
尝试在Windows 7上运行USBdebugging的问题(Android)(win7尝试使用sysprep处理计算机时出现错误)
我正在使用Windows 7 64位,我试图让我的电脑来检测我的HTC Desire,但它没有拿起它。 我已经通过Android更新程序安装了所有东西,而且我的手机已经通过Ubuntu运行,所以这肯定是Windows的一个问题。 有谁知道什么是错的,或者如何让它工作或两者兼而有之?
我正在使用Windows 7 64位
我有一个运行Stock 2.2(Froyo)的HTC Desire,可以在我的Ubuntu机器上使用USBdebugging
Windows确实检测到我的手机已插入。它显示为大容量存储设备。
在Ubuntu 14.04上安装genymotion?
如何使用Samsumg galaxy 5设备开发Android应用程序?
[错误:无法find'ANDROID_HOME'环境variables。 尝试设置手动设置
Cmd提示未检测到键盘input
Android API中断
我通过Android更新程序安装了所有可用的东西。
如何从头开始写一个android平板电脑的液晶驱动程序?
任何人都知道如何解决Android Studio中的“无法parsing符号”注入“错误?
“你的APP_BUILD_SCRIPT指向一个未知的文件:./jni/Android.mk”
android中无法parsingANDROID_LOG_DEBUG
保存独立应用程序时出错
我昨天晚上经历了一个很大的麻烦(花了我4-6个小时),但终于搞定了。 根据您所说的已完成的工作,请完成以下步骤:
重新启动你的电脑(真的,它不能伤害,谁知道有什么残余冷却,可以拧这一切了)。
连接你的手机
在设备管理器中,右键单击与手机相关的任何未知设备并更新驱动程序。 手动指向Android SDK中的usb_drivers 目录。
在这一点上,你应该只有一个未被发现的设备(亚行),Windows将无法找到它的驱动程序。
下载USBDeview ,以管理员身份运行(需要右键单击),并卸载您的手机和任何它列出的ADB驱动程序(您的手机应该仍然连接)。
断开你的电话。
下载HTCSync并安装它。
连接你的手机,Windows现在应该尝试安装驱动程序,并没有问题。
打开一个命令窗口并键入adb devices以确认所有内容都正确运行(也就是说,如果您将AndroidSDK的工具目录放在PATH变量中)。
在Windows 7 x64上有这个问题,并在设备管理器中卸载,然后选择手动安装给出了一个错误(如确保驱动程序是64位兼容)。 解决如下:
连接手机
以管理员身份运行USBDeview
按序列号排序
选择序列号开始HT的所有设备
卸载选定的设备
断开/重新连接手机
Windows将尝试,并失败,安装设备,忽略和…
通过设备管理器安装驱动:
打开设备管理器( 开始 – > 我的电脑 ,右键 – > 管理 – > 设备管理器 )
在其他下,您应该看到一个名为ADB或Android手机的黄色警告设备; 右键单击 – > 更新驱动程序软件…
点击浏览我的电脑获取驱动软件
点击让我从计算机上的设备驱动程序列表中选择
选择显示所有设备 ,点击下一步
点击有磁盘…
浏览到android sdk安装目录并找到usb_driver目录(我的是extras google)
选择android_winusb.inf并单击确定
选择Android复合ADB接口 ,然后单击下一步
出现更新驱动程序警告时,单击是
(道具craigcrawford1988在http://android.modaco.com/topic/309154-adb-device-driver-installation-Failed-on-window-7-x64/ )
你已经检查了Windows驱动程序的USB驱动程序的文章? 我不太确定您是否应该通过Android更新程序安装驱动程序。
我通过编辑驱动程序.inf文件得到了我的XP工作。 看起来Desire没有列在其中。
在adt android-sdk-windows usb_driver文件夹中编辑android_winusb.inf。
我将下面的行添加到相关的NTx86或NTamd64部分。
; HTC Desire%SingleAdbInterface%= USB_Install,USB VID_0BB4&PID_0C87&MI_01%CompositeAdbInterface%= USB_Install,USB VID_0BB4&PID_0C87&REV_0100&MI_01
这对我很好。
这是一个非常有用的链接,我遵循设置我的HTC Droid难以置信。
USB驱动程序设置Android的Windows 7
如果你不修改android_winusb.inf,USB调试将不起作用。
我有一个类似的问题,无法从真正的手机上启动Eclipse的Android应用程序,而不是在AVD。 一旦我安装HTC同步,它做了魔术,我能够使用真正的手机。
干杯,
马杜
android – adb.exe挂在Windows 7上
它工作正常,我构建了hello world应用程序并使用ADT将其安装在手机上.
但是在我运行项目的某个时间之后,它会一直显示消息ddmd post-create init
然后没有任何反应.我等了很多,但它挂在这个消息上
我尝试了所有给出的方法
>删除.lock文件
>通过任务管理器结束流程
>删除.android文件夹
>删除.Metadata / .project文件夹
>运行adb kill-server和adb设备,但它会等待
设备
>在环境变量中设置路径
>安装其他IDE,如netbeans和intelliJ
>删除Android SDK并将其安装在其他位置
>重启系统
>将platform-tools文件放在tools文件夹中
>更新的IDE和SDK管理器
上述方法都不适合我
每当我运行项目时,ddms post-create init消息出现,然后几个小时都没有发生!
请给我一个解决方案.我厌倦了做上述方法
我有Windows 7 32位
JDK 1.7
JRE 7
最新的Android SDK和Eclipse ADT
谢谢
解决方法
这是一个老问题,我正在使用Android SDK根据几个Android论坛,不知何故,我们不是唯一有这种问题的人.
人们在不同的情况下仍然存在这个问题.在我的情况下,我提出了一个非优雅的解决方案,但是,它完全适合我,只需在删除项目文件夹之前杀死进程.
寻找任何通过Windows杀死进程的方法,或者使用控制台执行命令的方法,我做的是在需要时将其执行到cmd中:
TASKKILL /F /IM ADB.exe /T
就像我之前说的那样,最好找到解锁文件夹的方法而不会杀死进程.
android – 在Windows 7上的ASUS Memo Pad FHD 10(ME302KL)上进行USB调试的驱动程序
我尝试按照Android开发者网站上的说明操作并打开平板电脑上的USB-Debug选项,但我的桌面在Android SDK目录中找不到任何相关的驱动程序,使用“adb devices”给我一个空列表.
有没有办法让我的桌面识别这款平板电脑?
解决方法
android – 如何在Windows 7上安装Nexus One的USB驱动程序以进行调试?
在Android Eclipse插件中,我已经下载并安装了USB驱动程序(修订版3)包.但是当我使用USB线将Nexus One连接到我的PC(运行Windows 7)时,会弹出一个消息框,显示“Nexus One”找不到“找不到驱动程序”.
我已在设备上激活USB调试.当我在我的PC上运行adb设备时,它只打印附加的设备列表,并且没有列出任何设备.如果我在Windows中使用设备管理,并尝试更新“Nexus One”的驱动程序,我无法在Android SDK的“驱动程序目录”中选择驱动程序.
如何在Windows 7上安装Nexus One的驱动程序,以便在真实设备上使用它来调试我的Android应用程序?
解决方法
The USB driver for Windows is a downloadable component for the Android SDK. If you are developing on Windows and would like to connect an Android-powered device to test your applications,then you will need to install the USB driver.
This document provides information about the latest version of the USB driver and a guide to installing the driver on your development computer.
USB Driver for Windows,Revision 3 (January 2010)
Adds support for the Nexus One.The USB Driver for Windows is
available for download as an optional
SDK component. You need the driver
only if you are developing on Windows
and want to connect an Android-powered
device to your development environment
over USB.To install the driver or upgrade your
existing driver to the latest
revision,you must first download the
driver to your development computer.To download the driver,use the
Android SDK and AVD Manager tool that
is included with the Android SDK. If
you haven’t yet installed the Android
SDK,as described in 07001,please do so before
continuing with the driver
installation.When you are ready to download the
driver,follow the instructions given
in 07002 to launch the
Android SDK and AVD Manager. From the
Available Packages panel,select “Usb
Driver Package” and download it to
your computer. The driver files are
downloaded into the<sdk>\usb_driver
directory.After the download,follow the
instructions below to install or
upgrade the driver,based on your
needs and Windows operating system
version. If you are connecting an
Android-powered device to your
computer for the first time,follow
the below procedure to “Perform a
fresh installation.” If you have
installed one of the older USB drivers
and would like to upgrade to the
latest version,follow the procedure
to “Upgrade an existing driver.”Once you’ve completed the USB driver installation,please see 07003 for other important information about using an Android-powered device for development.
Debugging Chromium on Windows
First see get the code for checkout and build instructions.
Getting started
You can use Visual Studio''s built-in debugger or WinDBG to debug Chromium. You don''t need to use the IDE to build in order to use the debugger: Ninja is used to build Chromium and most developers invoke it from a command prompt, and then open the IDE for debugging as necessary. To start debugging an executable from the command line:
devenv /debugexe out\Debug\chrome.exe <options to Chromium can go here>
Profiles
--user-data-dir=c:\tmp\my_debug_profile (replace the path as necessary)
Chrome debug log
Symbol server
In Visual Studio, this goes in Tools > Options under Debugging > Symbols. You should set up a local cache in a empty directory on your computer.https://chromium-browser-symsrv.commondatastorage.googleapis.com
.sympath+ SRV*c:\Symbols*https://chromium-browser-symsrv.commondatastorage.googleapis.com
_NT_SYMBOL_PATH=SRV*C:\symbols*https://msdl.microsoft.com/download/symbols;SRV*C:\symbols*https://chromium-browser-symsrv.commondatastorage.googleapis.com
Multi-process issues
Chromium can be challenging to debug because of its multi-process architecture. When you select Run in the debugger, only the main browser process will be debugged. The code that actually renders web pages (the Renderer) and the plugins will be in separate processes that''s not (yet!) being debugged. The ProcessExplorer tool has a process tree view where you can see how these processes are related. You can also get the process IDs associated with each tab from the Chrome Task Manager (right-click on an empty area of the window title bar to open).
Automatically attach to child processes
There are two Visual Studio extensions that enable the debugger to automatically attach to all Chrome processes, so you can debug all of Chrome at once. Microsoft''s Child Process Debugging Power Tool is a standalone extension for this, and VsChromium is another option that bundles many other additional features. In addition to installing one of these extensions, you must run Visual Studio as Administrator, or it will silently fail to attach to some of Chrome''s child processes.
Single-process mode
One way to debug issues is to run Chromium in single-process mode. This will allow you to see the entire state of the program without extra work (although it will still have many threads). To use single-process mode, add the command-line flag
--single-process
This approach isn''t perfect because some problems won''t manifest themselves in this mode and some features don''t work and worker threads are still spawned into new processes.
Manually attaching to a child process
--renderer-startup-dialog --no-sandbox
Semi-automatically attaching the debugger to child processes
--wait-for-debugger-children[=filter]The filter, if provided, will fire only if it matches the --type parameter to the process. Values include renderer, plugin (for NPAPI), ppapi, gpu-process, and utility.
--renderer-process-limit=1
Image File Execution Options
Visual Studio hints
Debug visualizers
Don''t step into trivial functions
- For Visual Studio 2015: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Packages\Debugger\Visualizers (for all users)
or %USERPROFILE%\My Documents\Visual Studio 2015\Visualizers (for the current user only) - For Visual Studio 2017 Pro: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers (for all users)
or %USERPROFILE%\My Documents\Visual Studio 2017\Visualizers (for the current user only)
V8 and Chromium
chrome.exe --js-flags="--trace_exception --heap_stats"
Note that some V8 command-line flags exist only in the debug build of V8. For a list of all V8 flags try:
chrome.exe --js-flags="--help"
Graphics debugging
- Graphics Debugging in Visual Studio 2013
- Graphical debugging with NVIDIA NSight
Debugging on another machine
- Make the build machine''s build volume available on the debug machine either by mounting it locally (e.g., Z:\) or by crafting a UNC path to it (e.g., \\builder\src)
- Open up a command prompt and change to a local disk
- Run src\tools\win\copy-installer.bat in the remote checkout by way of the mount (e.g., Z:\PATHTOCHECKOUT\src\...) or UNC path (e.g., \\builder\src\...). This will copy the installer, DLLs, and PDBs into your debug machine''s C:\out or C:\build (depending on if you''re rocking the component=shared_library build or not)
- Run C:\out\Debug\mini_installer.exe with the flags of your choice to install Chrome. This can take some time, especially on a slow machine. Watch the Task Manager and wait until mini_installer.exe exits before trying to launch Chrome (by way of the shortcut(s) created by the installer)
- For extra pleasure, add C:\out\Debug to your _NT_SYMBOL_PATH environment variable
Find memory leaks
- Launch GFlags.exe,
- Enable the user stack trace database (per image below),
- Launch Chrome under the debugger.
- Set a breakpont when chrome.dll loads with "sxe ld chrome.dll".
- Step up, to allow Chrome.dll to initialize.
- Disable the stack trace database in GFlags.exe.
- Continue chrome, optionally detaching the debugger.

umdh -p:<my browser pid> > chrome-browser-leak-umdh-dump.txt
Miscellaneous
- Application Verifier is a free tool from Microsoft (available as part of the Windows SDK) that can be used to flush out programming errors. Starting with M68 Application Verifier can be enabled for chrome.exe without needing to disable the sandbox. After adding chrome.exe to the list of applications to be stressed you need to expand the list of Basics checks and disable the Leak checks. You may also need to disable Handles and Locks checks depending on your graphics driver and specific Chrome version, but the eventual goal is to have Chrome run with Handles and Locks checks enabled. When bugs are found Chrome will trigger a breakpoint so running all Chrome processes under a debugger is recommended. Chrome will run much more slowly because Application Verifier puts every allocation on a separate page.
- You can check the undocumented ''Cuzz'' checkbox in Application Verifier to get the Windows thread scheduler to add some extra randomness in order to help expose race conditions in your code.
- Putting every allocation on a separate page will dramatically affect performance so you may want to only do this for some applications. If you right-click on the Heaps checkbox and select Properties you can edit things like the size range for what allocations go into PageHeap (the page-per-allocation system) and you can set a RandRate percentage to randomly put allocations in PageHeap.
- To put a breakpoint on CreateFile(), add this break point:
{,,kernel32.dll}_CreateFileW@28
- {,,kernel32.dll}specifies the DLL (context operator).
- _ prefix means extern "C".
- @28 postfix means _stdcall with the stack pop at the end of the function. i.e. the number of arguments in BYTES.
- You can use DebugView from SysInternals or sawbuck to view LOG() messages that normally goes to stderr on POSIX.
今天关于尝试在Windows 7上运行USBdebugging的问题和Android的分享就到这里,希望大家有所收获,若想了解更多关于android – adb.exe挂在Windows 7上、android – 在Windows 7上的ASUS Memo Pad FHD 10(ME302KL)上进行USB调试的驱动程序、android – 如何在Windows 7上安装Nexus One的USB驱动程序以进行调试?、Debugging Chromium on Windows等相关知识,可以在本站进行查询。
本文标签: