You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this. I've been aware of something being added to the build variant APIs, but haven't had the chance to look into it more. At this time, the android-junit5 plugin supports projects all the way down to AGP 3.5, so it isn't feasible to exclusively migrate to the new APIs and break pre-4.1 projects, I'm afraid. But it should definitely be possible to utilize this new functionality without having an exception thrown in your face - that much is certain.
We'll try to address this in a future release! I'll keep this ticket updated once a fix is available through a SNAPSHOT.
This has been resolved in #227 and will be part of the upcoming 1.7.0.0 plugin release - if you need the fix today, you can try out the 1.7.0.0-SNAPSHOT. Thanks again for reporting this!
Starting Android Gradle plugin 4+ it is possible to disable generating test tasks for specific variant/build type:
With this change module configuration phase fails with following exception:
Stacktrace
Probably plugin should use new variant api introduced in AGP 4.1: https://medium.com/androiddevelopers/new-apis-in-the-android-gradle-plugin-f5325742e614
The text was updated successfully, but these errors were encountered: