androidmacsdk
❶ mac搭建android環境sdk的license問題
react-native run-android時報以下錯誤
Warning: License for package Android SDK Build-Tools 23.0.1 not accepted.
Checking the license for package Android SDK Platform 23 in /Users/apple/Library/Android/sdk/licenses
Warning: License for package Android SDK Platform 23 not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 23, Android SDK Build-Tools 23.0.1].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
應該是版本問題。現在android studio版本已經超過23,所以必須在platform和sdk tools把23版本的加上。
在SDK Platforms窗口中,選擇Show Package Details,然後在Android 6.0 (Marshmallow)中勾選Google APIs、Android SDK Platform 23、Intel x86 Atom System Image、Intel x86 Atom_64 System Image以及Google APIs Intel x86 Atom_64 System Image。
在SDK Tools窗口中,選擇Show Package Details,然後在Android SDK Build Tools中勾選Android SDK Build-Tools 23.0.1(必須是這個版本)。然後還要勾選最底部的Android Support Repository.
❷ mac 安裝android studio 無法勾選 android sdk選項
Android Studio設置Http Proxy了吧。先打開Android Studio,Preference,Http Proxy設為No Proxy,關掉Android Studio,重新打開,應該就可以了。
❸ android sdk mac 版路徑怎麼使用
mac系統
android studio或eclipse
方法/步驟
對於android studio而言,默認的adb路徑為:
~/Library/Android/sdk/platform-tools
注意:路徑中"~"代表的根目錄指的是當前用戶的目錄,並非整個mac系統的根目錄,而且終端的默認當前目錄就是"~"。
如果有疑問,可以在終端輸入"ls"指令,在文件目錄中對照列出的文件進行比對。
默認情況下,用戶目錄下的"資源庫"Library文件夾是隱藏的,需要滑鼠右鍵選擇「查看顯示選項」,勾選「顯示「資源庫」文件夾」就可以顯示了。
按照如圖所示路徑便可找到adb的所在了。
在mac系統下打開終端,輸入:
>touch .bash_profile
>open -e .bash_profile
這樣會彈出一個「.bash_profile」文件.
打開文件後應該是空白的,在文件中添加:
export PATH=${PATH}:????
其中????代表你電腦中adb文件的路徑,本人的配置文件如下:
export PATH=${PATH}:~/Library/Android/sdk/platform-tools
添加完後,保存並關閉文件,至此,adb配置完畢。
如何驗證adb是否成功配置呢,很簡單,在終端輸入
>adb
不提示「command not found」,而是出現一長串幫助說明,那就證明adb已經配置好了。
❹ 如何在mac本上安裝android sdk
mac系統
android studio或eclipse
/步驟
於android studio言默認adb路徑:
~/Library/Android/sdk/platform-tools
注意:路徑"~"代表根目錄指前用戶目錄並非整mac系統根目錄且終端默認前目錄"~"
疑問終端輸入"ls"指令文件目錄照列文件進行比
默認情況用戶目錄"資源庫"Library文件夾隱藏需要滑鼠右鍵選擇查看顯示選項勾選顯示資源庫文件夾顯示
按照圖所示路徑便找adb所
mac系統打終端輸入:
>touch .bash_profile
>open -e .bash_profile
彈.bash_profile文件.
打文件應該空白文件添加:
export PATH=${PATH}:????
其????代表電腦adb文件路徑本配置文件:
export PATH=${PATH}:~/Library/Android/sdk/platform-tools
添加完保存並關閉文件至adb配置完畢
何驗證adb否功配置呢簡單終端輸入
>adb
提示command not found現串幫助說明證明adb已經配置
/
❺ mac 怎麼安裝android sdk環境
mac下安裝android sdk環境的步驟:
1、打開Android Studio website,點擊 'Download Android Studio for Mac'
2、同意 license agreement,點擊 'Download Android Studio for Mac'
3、打開下載的文件,並安裝
將 ANDROID_HOME 和工具目錄添加到 PATH
Cordova 會自動在多個位置檢測 Android SDK 的安裝,包括 Android Studio 默認使用的路徑。所以這一步並不是必須的,但是如果打算在命令行使用 Android tools,還是建議添加 PATH。
將環境變數ANDROID_HOME設置為 Android SDK 的目錄。如果你使用的是 Android Studio 安裝向導,默認目錄應該是~/Library/Android/sdk
將$ANDROID_HOME/tools和$ANDROID_HOME/platform-tools添加到 PATH
❻ Mac下怎麼安裝Android SDK啊我現在已經安裝好eclipse和ADT了,SDK也已經下載下來了,接下來該怎麼做
1.首先應該准備好mac平台的eclipse,並解壓安裝;
2.下載mac版本的android sdk,解壓到指定的目錄(其實這個只是個SDK與AVD配置的管理軟體);
3.安裝Fastboot for Mac OS插件,fastboot是刷系統ROM的一種工具,刷系統img和射頻img;另一種工具是adp。
4.下載完成後將Fastboot 復制到 /androidsdk/tools 目錄下(如果SDK包中包含 fastboot,可跳過此步驟)
打開終端,輸入下面的命令來創建一個新的 .bash_profile 文件
[xhtml]view plain
pico.bash_profile
在新出現的修改提示中輸入
[c-sharp]view plain
exportPATH=$PATH:/AndroidSDK/tools
按「control+X」保存(確認按「Y」),然後退出並重啟終端,至此,Mac OS X 下就可以使用 Adb 和 Fastboot 工具了.
本來說是還要需要安裝ADB的,但是在tools目錄下已經有了,省事,跳過.
5.打開tools目錄下的android,進行下載和配置SDK版本及AVD.
個人認為,在Max OS下搭建Android SDK不需要Fastboot。eclipse+adp,就可以了。