www.久久久久|狼友网站av天堂|精品国产无码a片|一级av色欲av|91在线播放视频|亚洲无码主播在线|国产精品草久在线|明星AV网站在线|污污内射久久一区|婷婷综合视频网站

當(dāng)前位置:首頁 > 嵌入式 > 嵌入式軟件
[導(dǎo)讀] 一:下載 Android SDKhttp://developer.android.com/sdk/index.html這里有兩種,一種是下載“ADT Bundle for Windows” ,這是個已經(jīng)集成好的Eclipse開發(fā)環(huán)境,

 一:下載 Android SDK

http://developer.android.com/sdk/index.html

這里有兩種,一種是下載“ADT Bundle for Windows” ,這是個已經(jīng)集成好的Eclipse開發(fā)環(huán)境,已經(jīng)配置好所有的東西,只需要做安裝JDK和配置環(huán)境變量。

還有一種就是自己有Eclipse只是想單獨下載Android SDK的。這種情況請選擇“USE AN EXISTING IDE”,下載SDK Tools For Windows。

二:安裝Android SDK

這里我解壓下載的:ADT Bundle for Windows文件得到:adt-bundle-windows-x86_64-20130522目錄

選擇好安裝目錄,一路下一步就行了,注意:如果你沒有配置JAVA_HOME環(huán)境變量,Android SDK安裝檢測可能會報錯。

配置Android SDK環(huán)境變量,這個是一個很容易出錯的地方,如果只是下載了“ADT Bundle for Windows”,沒有配置這個環(huán)境變量的話,那么在啟動虛擬機AVD的時候可能會出錯。

ANDROID_SDK_HOME:設(shè)置你Android SDK的安裝目錄就行了。我的是:D:\Android\android-sdk

PATH:把“%ANDROID_SDK_HOME%\tools;%ANDROID_SDK_HOME%\platform-tools;” 添加到系統(tǒng)環(huán)境變量path下。

三:在adt-bundle-windows-x86_64-20130522目錄下運行SDK Manager.exe

發(fā)現(xiàn):

WIN8下的Android SDK 秒退了

解決辦法: 找到Android SDK的安裝目錄下 android-sdk-windows/tools/lib/find_java.bat批處理文件,備份一下。(隨便重命名,更改后綴格式)。

然后新建同名格式文件,將以下內(nèi)容粘貼復(fù)制,保存即可。

然后,啟動 SDK Manager ,可以打開窗口。

把find_java.bat中全部替換成下面的:

@echo off

rem Copyright (C) 2007 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 This script is called by the other batch files to find a suitable Java.exe

rem to use. The script changes the "java_exe" env variable. The variable

rem is left unset if Java.exe was not found.

rem Useful links:

rem Command-line reference:

rem http://technet.microsoft.com/en-us/library/bb490890.aspx

rem Check we have a valid Java.exe in the path. The return code will

rem be 0 if the command worked or 9009 if the exec failed (program not found).

rem Java itself will return 1 if the argument is not understood.

set java_exe=java.exe

rem search it in the path and verify we can execute it

for %%a in (%java_exe%) do set java_exe=%%~s$PATH:a

if not exist %java_exe% goto SearchForJava

%java_exe% -version 2>nul

if ERRORLEVEL 1 goto SearchForJava

goto :SearchJavaW

rem ---------------

:SearchForJava

rem We get here if the default %java_exe% was not found in the path.

rem Search for an alternative in %ProgramFiles%\Java\*\bin\java.exe

echo.

echo WARNING: Java not found in your path.

rem The strategy is to look for Java under these 3 locations:

rem - %ProgramFiles%, which may point to either a 32-bit or 64-bit install

rem depending on the current invocation context

rem - %ProgramW6432%, which points to a 32-bit install. This may not be defined.

rem - %ProgramFiles(x86)%, which points to a 64-bit install. This may not be defined.

if not defined ProgramFiles goto :Check64

echo Checking if Java is installed in %ProgramFiles%\Java.

set java_exe=

for /D %%a in ( "%ProgramW6432%\Java\*" ) do call :TestJavaDir "%%a"

if defined java_exe goto :SearchJavaW

rem Check for the "default" 64-bit version if it's not the same path

:Check64

if not defined ProgramW6432 goto :Check32

if "%ProgramW6432%"=="%ProgramFiles%" goto :Check32

echo Checking if Java is installed in %ProgramW6432%\Java instead (64-bit).

set java_exe=

for /D %%a in ( "%ProgramW6432%\Java\*" ) do call :TestJavaDir "%%a"

if defined java_exe goto :SearchJavaW

rem Check for the "default" 32-bit version if it's not the same path

:Check32

if not defined ProgramFiles(x86) goto :CheckFailed

if "%ProgramFiles(x86)%"=="%ProgramFiles%" goto :CheckFailed

echo Checking if Java is installed in %ProgramFiles(x86)%\Java instead (32-bit).

set java_exe=

for /D %%a in ( "%ProgramFiles(x86)%\Java\*" ) do call :TestJavaDir "%%a"[!--empirenews.page--]

if defined java_exe goto :SearchJavaW

:CheckFailed

echo.

echo ERROR: No suitable Java found. In order to properly use the Android Developer

echo Tools, you need a suitable version of Java JDK installed on your system.

echo We recommend that you install the JDK version of JavaSE, available here:

echo http://www.oracle.com/technetwork/java/javase/downloads

echo.

echo You can find the complete Android SDK requirements here:

echo http://developer.android.com/sdk/requirements.html

echo.

goto :EOF

rem ---------------

:TestJavaDir

rem This is a "subrountine" for the for /D above. It tests the short version

rem of the %1 path (i.e. the path with only short names and no spaces).

rem However we use the full version without quotes (e.g. %~1) for pretty print.

if defined java_exe goto :EOF

set full_path=%~1\bin\java.exe

set short_path=%~s1\bin\java.exe

%short_path% -version 2>nul

if ERRORLEVEL 1 goto :EOF

set java_exe=%short_path%

echo.

echo Java was found at %full_path%.

echo Please consider adding it to your path:

echo - Under Windows XP, open Control Panel / System / Advanced / Environment Variables

echo - Under Windows Vista or Windows 7, open Control Panel / System / Advanced System Settings / Environment Variables

echo At the end of the "Path" entry in "User variables", add the following:

echo ;%full_path%

echo.

goto :EOF

rem ---------------

:SearchJavaW

rem Called once java_exe has been set. Try to see if we can find a javaw

rem to use. If not, we'll default to using java_exe.

for %%a in (%java_exe%) do set p=%%~pa

for %%a in (%java_exe%) do set n=%%~na

for %%a in (%java_exe%) do set x=%%~xa

set n=%n:java=javaw%

set javaw_exe=%p%%n%%x%

if not exist %javaw_exe% set javaw_exe=%java_exe%

goto :EOF

閃退的解決辦法二:

先用管理員身份運行SDK Manager.exe,這時候會出現(xiàn)閃退,再在解壓之后的SKD文件夾里搜索 android.bat , 雙擊運行,這時候應(yīng)該就會出現(xiàn)正常的程序窗口了

到此win8下安裝 android sdk和環(huán)境變量的配置就結(jié)束了。

本站聲明: 本文章由作者或相關(guān)機構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點,本站亦不保證或承諾內(nèi)容真實性等。需要轉(zhuǎn)載請聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請及時聯(lián)系本站刪除。
換一批
延伸閱讀

LED驅(qū)動電源的輸入包括高壓工頻交流(即市電)、低壓直流、高壓直流、低壓高頻交流(如電子變壓器的輸出)等。

關(guān)鍵字: 驅(qū)動電源

在工業(yè)自動化蓬勃發(fā)展的當(dāng)下,工業(yè)電機作為核心動力設(shè)備,其驅(qū)動電源的性能直接關(guān)系到整個系統(tǒng)的穩(wěn)定性和可靠性。其中,反電動勢抑制與過流保護是驅(qū)動電源設(shè)計中至關(guān)重要的兩個環(huán)節(jié),集成化方案的設(shè)計成為提升電機驅(qū)動性能的關(guān)鍵。

關(guān)鍵字: 工業(yè)電機 驅(qū)動電源

LED 驅(qū)動電源作為 LED 照明系統(tǒng)的 “心臟”,其穩(wěn)定性直接決定了整個照明設(shè)備的使用壽命。然而,在實際應(yīng)用中,LED 驅(qū)動電源易損壞的問題卻十分常見,不僅增加了維護成本,還影響了用戶體驗。要解決這一問題,需從設(shè)計、生...

關(guān)鍵字: 驅(qū)動電源 照明系統(tǒng) 散熱

根據(jù)LED驅(qū)動電源的公式,電感內(nèi)電流波動大小和電感值成反比,輸出紋波和輸出電容值成反比。所以加大電感值和輸出電容值可以減小紋波。

關(guān)鍵字: LED 設(shè)計 驅(qū)動電源

電動汽車(EV)作為新能源汽車的重要代表,正逐漸成為全球汽車產(chǎn)業(yè)的重要發(fā)展方向。電動汽車的核心技術(shù)之一是電機驅(qū)動控制系統(tǒng),而絕緣柵雙極型晶體管(IGBT)作為電機驅(qū)動系統(tǒng)中的關(guān)鍵元件,其性能直接影響到電動汽車的動力性能和...

關(guān)鍵字: 電動汽車 新能源 驅(qū)動電源

在現(xiàn)代城市建設(shè)中,街道及停車場照明作為基礎(chǔ)設(shè)施的重要組成部分,其質(zhì)量和效率直接關(guān)系到城市的公共安全、居民生活質(zhì)量和能源利用效率。隨著科技的進步,高亮度白光發(fā)光二極管(LED)因其獨特的優(yōu)勢逐漸取代傳統(tǒng)光源,成為大功率區(qū)域...

關(guān)鍵字: 發(fā)光二極管 驅(qū)動電源 LED

LED通用照明設(shè)計工程師會遇到許多挑戰(zhàn),如功率密度、功率因數(shù)校正(PFC)、空間受限和可靠性等。

關(guān)鍵字: LED 驅(qū)動電源 功率因數(shù)校正

在LED照明技術(shù)日益普及的今天,LED驅(qū)動電源的電磁干擾(EMI)問題成為了一個不可忽視的挑戰(zhàn)。電磁干擾不僅會影響LED燈具的正常工作,還可能對周圍電子設(shè)備造成不利影響,甚至引發(fā)系統(tǒng)故障。因此,采取有效的硬件措施來解決L...

關(guān)鍵字: LED照明技術(shù) 電磁干擾 驅(qū)動電源

開關(guān)電源具有效率高的特性,而且開關(guān)電源的變壓器體積比串聯(lián)穩(wěn)壓型電源的要小得多,電源電路比較整潔,整機重量也有所下降,所以,現(xiàn)在的LED驅(qū)動電源

關(guān)鍵字: LED 驅(qū)動電源 開關(guān)電源

LED驅(qū)動電源是把電源供應(yīng)轉(zhuǎn)換為特定的電壓電流以驅(qū)動LED發(fā)光的電壓轉(zhuǎn)換器,通常情況下:LED驅(qū)動電源的輸入包括高壓工頻交流(即市電)、低壓直流、高壓直流、低壓高頻交流(如電子變壓器的輸出)等。

關(guān)鍵字: LED 隧道燈 驅(qū)動電源
關(guān)閉