Fixed
Status Update
Comments
ra...@google.com <ra...@google.com>
je...@google.com <je...@google.com>
ko...@gmail.com <ko...@gmail.com> #2
Any update on this? This is a major blocker as we cannot run any androidTest under library projects/modules
im...@google.com <im...@google.com> #3
Hi there, thank you for your patience.
Could you please attach a sample project that shows this issue? Or please explain where and how the resource is defined and referenced.
Could you please attach a sample project that shows this issue? Or please explain where and how the resource is defined and referenced.
ka...@droidsonroids.pl <ka...@droidsonroids.pl> #4
Sample project is linked in #1, along with a repro step. Is anything still missing?
im...@google.com <im...@google.com> #5
Ah I missed that, thanks for pointing it out. I'll check it out and keep you updated.
ko...@gmail.com <ko...@gmail.com> #6
Hi, any update on this issue?
im...@google.com <im...@google.com>
am...@google.com <am...@google.com>
am...@google.com <am...@google.com> #7
I understand that this is an old issue and I am just starting to investigate this. Is this still a problem?
ko...@gmail.com <ko...@gmail.com> #8
I've just updated sample project dependencies to the latest AGP and Gradle versions and problem still occurs with additional StackOverflow issue.
Description
We've used AGP 4.2.2 in project and all android tests under library modules worked fine. After upgrading AGP to version 7.0.0 (and later 7.0.1) we are not able to compile android tests.
For sample project call: ./gradlew :customView:assembleDebugAndroidTest
Result: > Cannot find resource: id view_1
Expected: Successful compilation
Changing AGP version in sample project to 4.2.2 solves issue.
Missing resource id is used in kotlin code as reference for Espresso.
Build: AI-203.7717.56.2031.7583922, 202107261959,
AI-203.7717.56.2031.7583922, JRE 11.0.10+0-b96-7281165x64 JetBrains s.r.o., OS Mac OS X(x86_64) v10.15.7, screens 2880.0x1800.0, 1920.0x1080.0
AS: Arctic Fox | 2020.3.1; Kotlin plugin: 203-1.5.21-release-328-AS7717.8; Android Gradle Plugin: 4.2.2; Gradle: 7.0.2; Gradle JDK: version 11.0.10; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
IMPORTANT: Please read