Merge pull request #10428 from Isira-Seneviratne/AGP_8.1
Bump AGP to 8.1.1
This commit is contained in:
commit
673aa0a87b
2 changed files with 9 additions and 6 deletions
|
@ -170,8 +170,8 @@ public class StoredDirectoryHelper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only using Java I/O. Creates the directory named by this abstract pathname, including any
|
* Only using Java I/O. Creates the directory named by this abstract pathname, including any
|
||||||
* necessary but nonexistent parent directories. Note that if this
|
* necessary but nonexistent parent directories.
|
||||||
* operation fails it may have succeeded in creating some of the necessary
|
* Note that if this operation fails it may have succeeded in creating some of the necessary
|
||||||
* parent directories.
|
* parent directories.
|
||||||
*
|
*
|
||||||
* @return <code>true</code> if and only if the directory was created,
|
* @return <code>true</code> if and only if the directory was created,
|
||||||
|
@ -180,9 +180,12 @@ public class StoredDirectoryHelper {
|
||||||
*/
|
*/
|
||||||
public boolean mkdirs() {
|
public boolean mkdirs() {
|
||||||
if (docTree == null) {
|
if (docTree == null) {
|
||||||
// TODO: Use Files.createDirectories() when AGP 8.1 is available:
|
try {
|
||||||
// https://issuetracker.google.com/issues/282544786
|
Files.createDirectories(ioTree);
|
||||||
return Files.exists(ioTree) || ioTree.toFile().mkdirs();
|
} catch (final IOException e) {
|
||||||
|
Log.e(TAG, "Error while creating directories at " + ioTree, e);
|
||||||
|
}
|
||||||
|
return Files.exists(ioTree);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (docTree.exists()) {
|
if (docTree.exists()) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ buildscript {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:8.0.2'
|
classpath 'com.android.tools.build:gradle:8.1.1'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
|
Loading…
Reference in a new issue