Android SDK Platform 26 license error in Ionic 3

后端 未结 10 1996
粉色の甜心
粉色の甜心 2021-01-14 13:29

I\'m trying to run my Ionic 3 project on my Android device with ionic cordova run android --device --stacktrace, but, I\'ve the following output:

相关标签:
10条回答
  • 2021-01-14 13:55

    In latest SDK you can find sdkmanager file under this location

    /Users/pareshgami/Library/Android/sdk/cmdline-tools/latest/bin/
    

    after that we need to run same command

    sdkmanager "platforms;android-26"
    
    0 讨论(0)
  • 2021-01-14 13:57

    After I installed version which was asked for licenses - it started to work! You can do this in Android Studio > SDK Manager

    0 讨论(0)
  • 2021-01-14 13:57

    I did tried above mention tricks, what works for me on Mac OS is below

    $ANDROID_HOME/tools/bin/sdkmanager "build-tools;26.0.1" "platforms;android-26"
    
    0 讨论(0)
  • 2021-01-14 14:01

    @Paresh Gami's answer helped resolve mine. Just a side note for Mac OSX user..

    the full path is /Users/useraccount/Library/Android/sdk/tools/bin/

    where useraccount is your current system user.

    0 讨论(0)
提交回复
热议问题