React Native 出現 at checkExecSyncError (child_process.js:621:11)

Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;28.0.3 Android SDK Build-Tools 28.0.3
     platforms;android-28 Android SDK Platform 28
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

粗略看錯誤。發現是證書不正確的問題。但是按照提示的腳本進行修改

$ANDROID_HOME/tools/bin/sdkmanager --licenses

發現並沒有什麼卵用。結果發現,原來我的SDK_HOME指定錯誤了.

# 錯誤配置方法
sdk.dir=/Volumes/Mac/Android/sdk/tools

# 正確配置方法
sdk.dir=/Volumes/Mac/Android/sdk
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章