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

后端 未结 18 1651
挽巷
挽巷 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:40

    I had same situation and all of the above suggestion did not work because either my installation and component folder names are different or the files are in different places.

    I had old installation of Android Studio in C and new in E. I had uninstalled the old version but Android studio did not clear all files and reset my Env. Variable. So I simply did following

    1) Searched for this file: android-sdk-license

    2) See if above file is in folder Licenses surrounded by other folders like add-ons, build-tools, emulator etc.

    3) Then make sure ANDROID_HOME is pointing to this parent folder of Licenses.

提交回复
热议问题