Browse Source

Android: Android Studio 3.1 now requires the google() repository to come before any other repositories

tags/2021-05-28
hogliux ed 7 years ago
parent
commit
2271d3b734
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Android.h

+ 2
- 1
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Android.h View File

@@ -577,8 +577,8 @@ private:
mo << "buildscript {" << newLine; mo << "buildscript {" << newLine;
mo << " repositories {" << newLine; mo << " repositories {" << newLine;
mo << " jcenter()" << newLine;
mo << " google()" << newLine; mo << " google()" << newLine;
mo << " jcenter()" << newLine;
mo << " }" << newLine; mo << " }" << newLine;
mo << " dependencies {" << newLine; mo << " dependencies {" << newLine;
mo << " classpath 'com.android.tools.build:gradle:" << androidPluginVersion.get().toString() << "'" << newLine; mo << " classpath 'com.android.tools.build:gradle:" << androidPluginVersion.get().toString() << "'" << newLine;
@@ -591,6 +591,7 @@ private:
mo << "" << newLine; mo << "" << newLine;
mo << "allprojects {" << newLine; mo << "allprojects {" << newLine;
mo << " repositories {" << newLine; mo << " repositories {" << newLine;
mo << " google()" << newLine;
mo << " jcenter()" << newLine; mo << " jcenter()" << newLine;
if (androidEnableRemoteNotifications.get()) if (androidEnableRemoteNotifications.get())


Loading…
Cancel
Save