Ionic can not build android


#1

I create ionic 3 Tabs and i add platform android and build. it build android not work.

FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':prepareOrgApacheCordovaCordovaLib623DebugLibrary'.
    > Could not expand ZIP '/Users/frankenly/Desktop/plp/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-debug.aar'.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    
    BUILD FAILED
    
    Total time: 2 mins 6.06 secs
    Error: /Users/frankenly/Desktop/plp/platforms/android/gradlew: Command failed with exit code 1 Error output:
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':prepareOrgApacheCordovaCordovaLib623DebugLibrary'.
    > Could not expand ZIP '/Users/frankenly/Desktop/plp/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-debug.aar'.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Photo


#2

Post text as text.


#3

sorry, I’m edit post.


#4

It is having trouble unzipping something. I would guess that either you have a permission problem (the user you are building as does not have write permission to the directory in question) or the disk is full.


#5

Remove the android platform and add it back again - this might be enough to fix this.