Cannot build Android

Ever since I upgrade to ionic cli 2.0, I just can’t seems to be able to build for the Android. I tried to revert back to the older version and having the same problem now. I am at a loss of what to do next, can anyone help?..

This is my system info:
Cordova CLI: 6.3.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
ios-deploy version: Not installed
_ios-sim version: 5.0.6 _
OS: Mac OS X El Capitan
Node Version: v5.12.0
Xcode version: Xcode 7.3.1 Build version 7D1014

Error I get when trying to build Android:
cache taskArtifacts.bin (/Volumes/My Passport/ionic/push3/platforms/android/.gradle/2.13/taskArtifacts/taskArtifacts.bin) is corrupt. Discarding.

FAILURE: Build failed with an exception.

_ What went wrong:*
Could not open cache taskArtifacts.bin (/Volumes/My Passport/ionic/push3/platforms/android/.gradle/2.13/taskArtifacts/taskArtifacts.bin).
**
> Corrupted FreeListBlock 0 found in cache ‘/Volumes/My Passport/ionic/push3/platforms/android/.gradle/2.13/taskArtifacts/taskArtifacts.bin’._**

_ Try:_*
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

I really need some advice here, appreciate it…

Any one…? I am working on a project and is now stuck at this problem…:disappointed:

Did you try to remove android platform from project and then reinstall?

Sorry for the late reply, Yes I did try removing and reinstalling and it just giving me the same error. I even try to reinstall Android Studio on my mac but still doesn’t work…

Not sure but is your project on an external device? An WD Passport? The error message looks for me like a info that the hdd has some errors.

Yes is on the external hd (WD Passport), I don’t why but I seems to be able to build the android version now until I installed this plugin

cordova plugin add https://github.com/phonegap/phonegap-plugin-push --variable SENDER_ID=“XXXXXXX”

and now I am getting this error

FAILURE: Build failed with an exception.

_ What went wrong:*
A problem occurred configuring root project ‘android’.
**
> Could not resolve all dependencies for configuration ':debugCompile’.**
_ _
> Could not find any version that matches com.android.support:support-v13:23+.

_ Versions that do not match:_
_ 24.1.1_
_ 24.1.0_
_ 24.0.0_

_ Searched in the following locations:_

_ https://repo1.maven.org/maven2/com/android/support/support-v13/maven-metadata.xml_
_ https://repo1.maven.org/maven2/com/android/support/support-v13/_
_ https://jcenter.bintray.com/com/android/support/support-v13/maven-metadata.xml_
_ Required by:_
_ :android:unspecified_

_ > Could not find any matches for com.google.android.gms:play-services-gcm:9.0.2+ as no versions of com.google.android.gms:play-services-gcm are available._

_ Searched in the following locations:_
_ https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/maven-metadata.xml_

_ https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/_
_ https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/maven-metadata.xml_
_ https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/_

_ Required by:_

_ :android:unspecified_

_ Try:*
Run with --stacktrace
**
option to get the stack trace. Run with --info or --debug option to get more log output._**

BUILD FAILED

How can I resolve this ?..