google / modernstorage

ModernStorage is a group of libraries that provide an abstraction layer over storage on Android to simplify its interactions
https://google.github.io/modernstorage/
Apache License 2.0
1.24k stars 60 forks source link

Warning in Filesystem unit tests when using AGP 7.0.0-beta05 #41

Closed yrezgui closed 3 years ago

yrezgui commented 3 years ago

Describe the bug

Whenever I run the filesystem unit tests, I get an warning in my logs. It doesn't stop the tests to run and they're still succeeding but this warning shouldn't happen. The bug has been introduced when we updated AGP to 7.0.0-beta05 from 4.2.1 (see commit here).

Executing tasks: [:filesystem:cleanTestDebugUnitTest, :filesystem:testDebugUnitTest] in project /Users/yrezgui/modernstorage

unable to enhance gradle daemon classloader with idea_rt.jar
org.gradle.api.InvalidUserCodeException: Querying the mapped value of provider(interface java.util.Set) before task ':filesystem:compileDebugUnitTestKotlin' has completed is not supported

To Reproduce

Steps to reproduce the behavior:

  1. Open project in Android Studio
  2. Run filesystem unit tests
  3. See warning in logs

Expected behavior

Warning shouldn't happen. It's not present when using AGP 4.2.1

Environment:

nic0lette commented 3 years ago

Looks like this is fixed with 7.0.0.