Package native binary Android Build Error

Hi Team,

I am trying to package my ionic3 app from Ionic Pro( for android. I am getting error as below in console.


Total time: 25.445 secs
Error: /usr/src/app/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'android'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Platform 26].
  Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
  Alternatively, to learn how to transfer the license agreements from one workstation to another, go to

Could you please help out to solve this issue?

Same problem here.

<engine name="android" spec="6.3.0" />

"cordova-android": "6.3.0"

Any help is appreciated.