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.
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…
_ 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_
_ > 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._