Why not add mavenLocal () to all Android apps?

When you create an Android project from scratch, Android Studio does not add mavenLocal()Gradle to the list of repositories. But we added it, and builds are now faster than ever.

Is there any reason to avoid adding mavenLocal()to every Android project that we have? I mean, are there any flaws in this?

+4
source share
2 answers

What if you didn’t have a local repository .m2?

mavenLocal()actually adds your .m2to your Gradle repositories.

Gradle , , , , , , , maven local repo Gradle repositories , .

, maven Gradle, , . , maven, Gradle .

+1

, @LazerBanana .

, , . , mavenLocal(), .

0

Source: https://habr.com/ru/post/1681268/


All Articles