Skip to content

Updating AGP and Gradle causes build_android_host_app_with_module_aar to fail which implies that customers would also be broken. #163750

@reidbaker

Description

@reidbaker
  • Apply patch below.
  • from dev/devicelab run dart bin/test_runner.dart test -t build_android_host_app_with_module_aar

Test fails with "reason": "Failed to copy read-only asset file"
That failure comes from

return TaskResult.failure('Failed to create read-only asset');

Looking in the build directory I do not see the read only file.

diff --git a/dev/devicelab/bin/tasks/build_android_host_app_with_module_aar.dart b/dev/devicelab/bin/tasks/build_android_host_app_with_module_aar.dart
index 80a5b32276..539890e8a6 100644
--- a/dev/devicelab/bin/tasks/build_android_host_app_with_module_aar.dart
+++ b/dev/devicelab/bin/tasks/build_android_host_app_with_module_aar.dart
@@ -437,8 +437,7 @@ class ModuleTest {
 Future<void> main() async {
   await task(
     combine(<TaskFunction>[
-      ModuleTest(gradleVersion: '8.4').call,
-      ModuleTest(gradleVersion: '8.4-rc-3').call,
+      ModuleTest(gradleVersion: '8.10.2').call,
     ]),
   );
 }
diff --git a/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/build.gradle b/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/build.gradle
index 592d125fbc..8715e3234c 100644
--- a/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/build.gradle
+++ b/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/build.gradle
@@ -8,7 +8,7 @@ buildscript {
         mavenCentral()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:8.1.0'
+        classpath 'com.android.tools.build:gradle:8.8.1'
     }
 }

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-androidAndroid applications specificallyteam-androidOwned by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions