Error - ionic build android


#1

Morning Ionic,
** I face this problem last a week, please give me a best solution.**

 C:\Users\ASAR-KSS\msrp>ionic build android
    Running command: "C:\Program Files\nodejs\node.exe" C:\Users\ASAR-KSS\msrp\hooks\after_prepare\010_add_platform_class.js C:\Users\ASAR-KSS\msrp


    add to body class: platform-android

    ANDROID_HOME=C:\Users\ASAR-KSS\AppData\Local\Android\sdk
    JAVA_HOME=C:\Program Files (x86)\java\jdk1.7.0_79

    chmod: File not found: C:\Users\ASAR-KSS\msrp\platforms\android\gradle\wrapper\gradle-wrapper.properties


    sed: no such file or directory: C:\Users\ASAR-KSS\msrp\platforms\android\gradle\wrapper\gradle-wrapper.properties


    Exception in thread "main"
    java.lang.RuntimeException: Wrapper properties file 'C:\Users\ASAR-KSS\msrp\platforms\android\gradle\wrapper\gradle-wrapper.properties' does not exist.
            at org.gradle.wrapper.WrapperExecutor.forWrapperPropertiesFile(WrapperExecutor.java:47)

            at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:47)

    Error: cmd: Command failed with exit code 1 Error output:
    Exception in thread "main" java.lang.RuntimeException: Wrapper properties file 'C:\Users\ASAR-KSS\msrp\platforms\android\gradle\wrapper\gradle-wrapper.properties' does not exist.
            at org.gradle.wrapper.WrapperExecutor.forWrapperPropertiesFile(WrapperExecutor.java:47)
            at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:47)

#2

please check full detail here