头晕的android SDK Manager

头晕的android SDK Manager,第1张

概述  这张图很完美!可是出问题就头晕了。问题场景:执行Andriod.bat出现下面界面后,然后跳出AndriodSDK的界面:  androidSDKManager的界面就孤零零的几条记录挂在那里。就没有下一步了,就是说玩不转了。我们看执行的bat文件@echoonPause'anykey'remCopyright(C)2007

 

 这张图很完美!可是出问题就头晕了。

问题场景:执行Andriod.bat出现下面界面后,然后跳出Andriod SDK的界面:

 

 androID SDK Manager的界面就孤零零的几条记录挂在那里。就没有下一步了,就是说玩不转了。

我们看执行的bat文件

@echo onPause 'any key'rem copyright (C) 2007 The AndroID Open Source Projectremrem 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 atremrem      http://www.apache.org/licenses/liCENSE-2.0remrem Unless required by applicable law or agreed to in writing, softwarerem 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 andrem limitations under the license.rem Useful links:rem Command-line reference:rem   http://technet.microsoft.com/en-us/library/bb490890.aspxrem don't modify the caller's environmentsetlocal enableextensionsrem 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=%~f0rem Grab current directory before we change itset work_dir=%cd%rem Change current directory and drive to where the script is, to avoIDrem issues with directorIEs containing whitespaces.cd /d %~dp0rem Check we have a valID Java.exe in the path.set java_exe=call lib\find_java.batif not defined java_exe goto :EOFset jar_path=lib\sdkmanager.jar;lib\swtmenubar.jarrem Set SWT.Jar path based on current architecture (x86 or x86_64)for /f "delims=" %%a in ('"%java_exe%" -jar lib\archquery.jar') do set swt_path=lib\%%a:MkTempcopy    rem copy androID.bat and its required libs to a temp dir.    rem This avoIDs locking the tool dir in case the user is trying to update it.    set tmp_dir=%TEMP%\temp-androID-tool    xcopy "%swt_path%" "%tmp_dir%\%swt_path%" /I /E /C /G /R /Y /Q > nul    copy /B /D /Y lib\common.jar         "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\commons-codec*     "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\commons-compress*  "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\commons-logging*   "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\dvlib.jar          "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\gson*              "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\guava*             "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\httpclIEnt*        "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\httpcore*          "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\httpmime*          "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\layoutlib-API.jar  "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\org-eclipse-*      "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\sdk*               "%tmp_dir%\lib\"          > nul    copy /B /D /Y lib\swtmenubar.jar     "%tmp_dir%\lib\"          > nul    rem jar_path and swt_path are relative to PWD so we don't need to adjust them, just change dirs.    set tools_dir=%cd%    cd /d "%tmp_dir%":EndTempcopyrem The global ANDROID_SWT always overrIDe the SWT.Jar pathif defined ANDROID_SWT set swt_path=%ANDROID_SWT%if exist "%swt_path%" goto SetPath    echo ERROR: SWT folder '%swt_path%' does not exist.    echo Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.    goto :EOF:SetPathrem Finally exec the java program and end here.REM set REMOTE_DEBUG=-XdeBUG -XrunjDWp:transport=dt_socket,server=y,suspend=y,address=8000call "%java_exe% %rEMOTE_DEBUG%" "-Dcom.androID.sdkmanager.toolsdir=%tools_dir%" "-Dcom.androID.sdkmanager.workdir=%work_dir%" -classpath "%jar_path%;%swt_path%\swt.jar" com.androID.sdkmanager.Main %*rem EOF

 

跟踪后发现目录【C:\Users\Usegear\AppData\Local\Temp\temp-androID-tool】是Readonly的,把此目录的属性改成可读写覆盖的即可。

说起来,蛮搞笑的。可是问题就是这样莫名其妙的。

 

总结

以上是内存溢出为你收集整理的头晕的android SDK Manager全部内容,希望文章能够帮你解决头晕的android SDK Manager所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1046302.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存