Issue
I'm a beginner in ionic .. and am trying to generate the apk from an ionic project .. but unfortunately it failed to be generated giving me this error
Android Studio project detected
ANDROID_HOME=C:\Users\abdel ysf\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_151
studio
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All
variants are now published.
[18:51:59] lint finished in 15.14 s
Checking the license for package Android SDK Platform 26 in
C:\Users\abdel ysf\AppData\Local\Android\sdk\licenses
Warning: License for package Android SDK Platform 26 not
accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> 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.
The command I used is : ionic cordova build android
Solution
Open Android Studio SDK Manager and under 'SDK platforms' tab, select the required Android versions(Ex:Android 8.1(Oreo)) and click OK. If the error keeps repeating, try installing some of the previous Android versions too.
Answered By - wahid_abdul
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.