Ionic build error : You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24]

后端 未结 18 1633
挽巷
挽巷 2020-12-08 18:59

I\'m trying to run the command ionic build android --release to build the apk but i am getting this error

Total time: 1.767 secs Error:

18条回答
  •  爱一瞬间的悲伤
    2020-12-08 19:20

    Above peter wang's answer worked for me after setting the ANDROID_HOME environment variable. in my case ANDROID_HOME was C:\Users\YourUserName\AppData\Local\Android\android-sdk

    After that below commands resulted in a successful build.

    mkdir "%ANDROID_HOME%\licenses"
    echo |set /p="8933bad161af4178b1185d1a37fbf41ea5269c55" > "%ANDROID_HOME%\licenses\android-sdk-license"
    

提交回复
热议问题