getting Error while IONIC build properties.gradle does not Exist

21,511

Solution 1

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

Solution 2

I was having a similar problem, running the command ionic capacitor run android I was getting androidmanifest.xml doesn't exist.

It was solved by running the command ionic capacitor update

Solution 3

I was getting this error while only using Capacitor which I thought was strange so I nuked the android path in my root folder and then npx cap add android again and the build worked after that

Share:
21,511
Bhavin
Author by

Bhavin

I have a 3 year of expriance in Angularjs, (Angular 2,4,5,6), (Ionic 1,2,3), Html5, Css3, Javascript, JQuery, Core PHP. currently i am working as a Sr Angular Developer at Ahmedabad.

Updated on August 20, 2020

Comments

  • Bhavin
    Bhavin over 3 years
    1. i am trying to creating ionic build, but getting error, here is my step.
    2. ionic cordova platform remove android
    3. ionic cordova platform add android
    4. 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.
    
  • ASomN
    ASomN almost 4 years
    this fixed it for me
  • an0nh4x0r
    an0nh4x0r almost 3 years
    thanks, man ... it helped me in getting the issue fixed.