您的位置:首页 > 文旅 > 美景 > 徐州钢网架公司_小视频哪个网站比较好_成都网站优化及推广_软文营销的概念

徐州钢网架公司_小视频哪个网站比较好_成都网站优化及推广_软文营销的概念

2024/12/23 16:47:04 来源:https://blog.csdn.net/2301_76862031/article/details/143197170  浏览:    关键词:徐州钢网架公司_小视频哪个网站比较好_成都网站优化及推广_软文营销的概念
徐州钢网架公司_小视频哪个网站比较好_成都网站优化及推广_软文营销的概念

目录

1)Unable to connect to adb.Check if adb is installed correctly

解决办法修改配置文件

2)Unexpected error while obtaining UI hierachy

解决办法替换文件

 文件下载地址


1)Unable to connect to adb.Check if adb is installed correctly

解决办法修改配置文件

SDK根目录   === > tools ===> bin ===> uiautomatorviewer.bat ===> 鼠标右键以记事本打开 ==》找到platform-tools目录 ===》修改uiautomatorviewer.bat 文件中最后一行内容 ===》也就是下文中的标红的东西

你自己安卓SDK目录下的tools下的bin目录 下的uiautomatorviewer.bat

@echo off
rem Copyright (C) 2012 The Android Open Source Project
rem
rem Licensed under the Apache License, Version 2.0 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem      http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.

rem don't modify the caller's environment
setlocal

rem Set up prog to be the path of this script, including following symlinks,
rem and set up progdir to be the fully-qualified pathname of its directory.
set prog=%~f0

rem Change current directory and drive to where the script is, to avoid
rem issues with directories containing whitespaces.
cd /d %~dp0

rem Get the CWD as a full path with short names only (without spaces)
for %%i in ("%cd%") do set prog_dir=%%~fsi

rem Check we have a valid Java.exe in the path.
set java_exe=
call ..\lib\find_java.bat
if not defined java_exe goto :EOF

for /f %%a in ("%APP_HOME%\lib\uiautomatorviewer-25.3.1.jar") do set jarfile=%%~nxa
set frameworkdir=.

if exist %frameworkdir%\%jarfile% goto JarFileOk
    set frameworkdir=..\lib

if exist %frameworkdir%\%jarfile% goto JarFileOk
    set frameworkdir=..\framework

:JarFileOk

set jarpath=%frameworkdir%\%jarfile%

if not defined ANDROID_SWT goto QueryArch
    set swt_path=%ANDROID_SWT%
    goto SwtDone

:QueryArch

    for /f "delims=" %%a in ('%frameworkdir%\..\bin\archquery') do set swt_path=%frameworkdir%\%%a

:SwtDone

if exist "%swt_path%" goto SetPath
    echo SWT folder '%swt_path%' does not exist.
    echo Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
    exit /B

:SetPath
set javaextdirs=%swt_path%;%frameworkdir%

call "%java_exe%" "-Djava.ext.dirs=%javaextdirs%" "-Dcom.android.uiautomator.bindir=D:\Programer\ProgramerUtil\AndroidStudioSDK\platform-tools" -jar %jarpath% %*


 

注:红色的部分替换为你自己安卓SDK目录下的tools下的bin目录 下的uiautomatorviewer.bat

 这个是我的sdk 中的东西,你需要找到自己的sdk根目录下platform tools 路径替换红色部分就可了

2)Unexpected error while obtaining UI hierachy

解决办法替换文件

 文件下载地址

https://www.123684.com/s/lWZKVv-dZiav?提取码:pX3B

 

找到你自己的SDK安装目录下的tools目录下的lib文件  把文件复制进去就可以了

D:\Programer\ProgramerUtil\AndroidStudioSDK\tools\lib

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com