From 19699e18b401d2d9ed5ca0ef9701f1433e270a12 Mon Sep 17 00:00:00 2001 From: chrisgarrity Date: Mon, 29 Oct 2018 09:35:57 -0400 Subject: [PATCH] Fix Android (gradle) build error Builds that worked one day, suddenly fail the next. The error is: `Could not find play-services-basement.aar (com.google.android.gms:play-services-basement:15.0.1).` Re-ordering the repositories fixes the issue (from Stack Overflow): https://stackoverflow.com/questions/50563407/could-not-find-play-services-basement-aar --- android/ScratchJr/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/ScratchJr/build.gradle b/android/ScratchJr/build.gradle index c6e0221..0ceb1e6 100644 --- a/android/ScratchJr/build.gradle +++ b/android/ScratchJr/build.gradle @@ -2,10 +2,10 @@ buildscript { repositories { - jcenter() maven { url "https://maven.google.com" } + jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.1' @@ -18,9 +18,9 @@ buildscript { allprojects { repositories { - jcenter() maven { url "https://maven.google.com" } + jcenter() } }