Cordova build android shows "You have not accepted the license agreements of the following SDK components" -


i am, working on ionic3 project. when build app using cordova build android shows error

failure: build failed exception.

* went wrong: problem occurred configuring root project 'android'. > have not accepted license agreements of following sdk components:   [android sdk build-tools 26.0.1, android sdk platform 25].   before building project, need accept license agreements , complete installation of missing components using android studio sdk manager.   alternatively, learn how transfer license agreements 1 workstation another, go http://d.android.com/r/studio-ui/export-licenses.html 

i have followed stackoverflow answers related types of errors. still shows error

i have followed following procedure overcome error.

  1. successfully added android_home directory
  2. accepted licenses using following command

    ./sdkmanager --licenses

at ( $android_home/android/sdk/tools/bin ) directory

what main issue occurring error ? how overcome issue ? other way solve issue ?

an easier way run on command prompt:

mkdir "%android_home%\licenses"

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

then locate folder set android home or: easily:

mkdir "folder containing android-sdk\licenses"

echo |set /p="8933bad161af4178b1185d1a37fbf41ea5269c55" "folder containing android-sdk\licenses\android-sdk-license"

remember use either echo or set.

and go

more this previous answer


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -