Issue
- i am trying to creating ionic build, but getting error, here is my step.
- ionic cordova platform remove android
- ionic cordova platform add android
- ionic cordova build android
while i run last command then got below Error.
FAILURE: Build failed with an exception.
Where: Script 'D:\Projects\corporatesolutionmobileapp\platforms\android\cordova-android -support-gradle-release\sancial-cordova-android-support-gradle-release.gradle' l ine: 11
What went wrong: A problem occurred evaluating script.
Could not read script 'D:\Projects\corporatesolutionmobileapp\platforms\androi d\app\cordova-android-support-gradle-release\properties.gradle' as it does not e xist.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 1s [ERROR] An error occurred while running subprocess cordova.
cordova build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more
information.
Solution
Updating to the most recent version (v2.0.1) of cordova-android-support-gradle-release
should resolve your issue:
ionic cordova platform rm android
ionic cordova plugin rm cordova-android-support-gradle-release
ionic cordova plugin add cordova-android-support-gradle-release@latest
ionic cordova platform add android
ionic cordova build android
Answered By - DaveAlden
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.