Closed DanielJette closed 3 years ago
It's been 10 months and it is virtually impossible for me to not get this error. Why is this still a blocking issue? Is this issue relegated to Android Studio 4 (Artic/Bumblebee/Chipmunk)?
It's been 10 months and it is virtually impossible for me to not get this error. Why is this still a blocking issue? Is this issue relegated to Android Studio 4 (Artic/Bumblebee/Chipmunk)?
@wcorey This error is related to changes made in AGP7. This issue should have been addressed as of Testify 1.1.0-beta3.
Can I get more information about your setup please? Can you please share:
id(com.android.application)
or id(com.android.library)
)com.android.tools.build:gradle
from your build.gradle)gradle/wrapper/gradle-wrapper.properties
)classpath
for "dev.testify:plugin"
)Are you able to run the command ./gradlew testifySettings
? Can you share the output of that command please?
Thanks for responding Daniel.
./gradlew testifySettings
FAILURE: Build failed with an exception.
I get the aforementioned error in trying to build Android Studio projects from 3 years ago. If I take an Android project, from almost exactly 3 yrs ago and try to build it against the now GA AGP / Gradle of 7.2.1 and 7.4.2, respectively gradle build's immediate visual error is a non-descript "Gradle Sync issue" with the red circle with white "!". A few weeks ago I happened on a hint by a poster that to drill into what caused the "Gradle Sync issue", manually run ./gradew build -stacktrace and scroll back to the primary error. "Caused by: java.lang.IllegalStateException: Cannot query the value of property 'namespace' because configuration of project ':app' has not completed yet." Scrolling back, yet further, is "WARNING:API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see TBD."
Is the problem that I, somehow, got a beta Android Studio and the GA version is still 3.x? I, actually, don't remember going out of my way to download Bumblebee. It may be that in the course of migrating from an older Linux image to a fresh install 20.04 that forced me to install Android Studio anew. Bumblebee->Chipmunk was an automatic upgrade.
I don't have Testify and never heard of it until your email. I am 5+ weeks into a mobile development course and the vast majority of that time has been spent wrestling with A/S and errors such as this. What hurts, perhaps to the point of self infliction are the bottom right "hey, wanna upgrade to the latest AGP, huh? do ya? I am chuckling a bit but this is beyond frustrating. I spent a career in mainframe->desktop development so mobile (android) seemed like a worthwhile "since I have some time on my hands" venture. I see this issue was marked closed. Is it really???
@wcorey I'm sorry but this issue #234 (and related fixes) are relevant only to the Android Testify Screenshot library project and plugin. The error as logged in this issue were caused by an incompatibility with the Testify Gradle Plugin and AGP 7, but only for projects that are using the Testify plugin. If you're not currently using Testify, then unfortunately the error you are seeing is caused by something else.
Describe the bug
This issue relates to:
To Reproduce
gradle-wrapper.properties
to:distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
com.android.tools.build:gradle:7.0.0
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Target Android Device (please complete the following information):
./gradlew testifyKey
]Additional context
Testify version 1.1.0-beta1