android環境配置(adb問題)

2021-09-01 07:40:52 字數 1086 閱讀 8445

android環境配置步驟:官方文件,我就不翻譯了)

中間遇到的問題:

1.myelipse相容性不好,尤其我用的是7.0,建議新手使用推薦的elipse classical

2.執行helloworld程式時提示錯誤:

[2012-05-31 21:13:58 - helloandorid] the connection to adb is down, and a severe error has occured.

[2012-05-31 21:13:58 - helloandorid] you must restart adb and eclipse.

[2012-05-31 21:13:58 - helloandorid] please ensure that adb is correctly located at 'c:\android-sdk\platform-tools\adb.exe' and can be executed.

搜尋到的解決方案:

try below steps:

close the eclipse if running

go to the android sdk tools directory in command prompt

typeadb kill-server

then typeadb start-server

no error message is thrown while starting adb server, then adb is started successfully.

now you can start eclipse again.

it worked for me this way, eclipse should be closed before issuing these commands.

執行第四步時命令列提示adb server didn't ack

有人的解決方案說:要關閉任務管理其中的adb.exe,我裡面壓根沒有。後來經過種種嘗試,想到我安裝了豆瓣夾,而網上有的方案和這個有關係(我並沒有執行,只是安裝了)

於是我刪掉了豆瓣夾,於是,問題解決!!!

ADB除錯環境配置

接著配置一下adb除錯工具 每做完一步,都可以試試adb命令能不能用。三步都做完應該就能解決adb不能用的問題。1 保證sdk路徑下的platform tools和tools資料夾中包含adb.exe adbwinapi.dll,adbwinusbapi.dll三個檔案。2 在系統環境變數path中...

MAC配置adb環境

配置adb環境 在linux命令列terminal上使用gedit直接就可以開啟文字檔案 那麼在mac上面如何操作呢?使用 open a textedit settings.xml 引數說明 a指定應用 也可以是 open e settings.xml 引數說明 e使用文字編輯器開啟 也可以是 op...

macOS配置adb環境

檢視sdk安裝目錄 users yhw library android sdk命令列終端執行 開啟.bash profile檔案 sudo vim bash profile 編輯.bash profile檔案在末尾新增兩行配置 export path users yhw library androi...