Could Not Find Any Version That Matches Com.google.android.gms:play-services-gcm:12+ (
I'm trying to compile on ionic 3.20 with cordova 6.5.0 on Android. I'm executing cordova run android but everytime I'm getting: Error: ~/Develop/blastbot-ionic/platforms/android/gr
Solution 1:
I tried cordova platform add android@5
and afterwards cordova run android
and it worked like a charm.
UPDATE
The line abov "solved" the issue partially, but my targeted API level was 23 instead of 25. The issue, after almost month and a half of trying different SDK tools/build-tools/Google repo combinations I found the solution.
Navigate to platforms/android/project.properties
and look for a line like
cordova.system.library.2=com.google.android.gms:play-services-gcm:12+
Notice that 12+
at the end. Simply change it to 11+
, that will do the job. Hope nobody goes through this like I did.
Post a Comment for "Could Not Find Any Version That Matches Com.google.android.gms:play-services-gcm:12+ ("