Our build.gradle contains this line:
implementation fileTree(dir: 'libs', include: 'somejar.1.2.3.jar')
This is causing sortDependencies to exit with error code 3. Removing this one line from build.gradle fixes the problem.
Oddly checkDependencies passes just fine. There is not much in the stacktrace or debug logs. The first meaningful line from the stacktrace is:
Caused by: org.gradle.process.internal.ExecException: Process 'command '/MY_JDK/Contents/Home/bin/java'' finished with non-zero exit value 3
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:442)
at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:52)
at org.gradle.process.internal.DefaultExecActionFactory.javaexec(DefaultExecActionFactory.java:195)
at org.gradle.process.internal.DefaultExecOperations.javaexec(DefaultExecOperations.java:42)
at com.squareup.sort.SortDependenciesTask.action(SortDependenciesTask.kt:60)
FWIW we are on plugin version 0.7 and AGP version 8.5.1
Our build.gradle contains this line:
This is causing
sortDependenciesto exit with error code 3. Removing this one line from build.gradle fixes the problem.Oddly
checkDependenciespasses just fine. There is not much in the stacktrace or debug logs. The first meaningful line from the stacktrace is:FWIW we are on plugin version 0.7 and AGP version 8.5.1