build.gradle 1.0 KB

1234567891011121314151617181920212223242526272829
  1. allprojects {
  2. buildscript {
  3. repositories {
  4. google()
  5. jcenter()
  6. }
  7. dependencies {
  8. // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
  9. // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
  10. // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
  11. // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
  12. classpath 'com.android.tools.build:gradle:4.0.1'
  13. }
  14. }
  15. repositories {
  16. google()
  17. jcenter()
  18. flatDir {
  19. dirs "${project(':unityLibrary').projectDir}/libs"
  20. }
  21. }
  22. }
  23. task clean(type: Delete) {
  24. delete rootProject.buildDir
  25. }