My current Android Application depends on a sub gi...
# gradle
t
My current Android Application depends on a sub git repo the folder structure is /Users/myname/github/main-app /Users/myname/github/sub-module My project gradle build file has... task cloneAndPullSdk { File dir = new File('../sub-module') def grgit if (!dir.exists()) { grgit = Grgit.clone(dir: dir, uri: 'https://github.com/Organisation/sub-module.git') } else { grgit = Grgit.open(dir: '../sub-module') } grgit.checkout(branch: sdkBranch, createBranch: false) } My
gradle
build (used to work fine) employs classpath 'org.ajoberstargrgit1.9.3' To open the associated git repo When I refresh gradle and/or clean or build I get this error * What went wrong: A problem occurred evaluating root project 'main-app'. > repository not found: /Users/rossUlbricht/.gradle/daemon/sub-module/.git Why is
GrGit
looking in the /.gradle/daemon/ folder for my repo? How do I configure gradle to enable it to correctly locate my sub module folder location? I have just upgraded Android Studio to Android Studio 4.1 Build #AI-201.8743.12.41.6858069, built on September 23, 2020 Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.6 and using dependencies { classpath 'com.android.tools.buildG3.4.0' classpath 'org.ajoberstargrgit1.9.3' // in the individual module build.gradle files } with #Tue Jun 05 120124 BST 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\:<//services.gradle.org/distributions/gradle-5.1.1-all.zip>
when i build from command line it works fine