在 Android studio 3.6.1 上构建 App 期间出现警告

Warning during App build on Android studio 3.6.1

我刚刚更新了 Android studio 3.6.1,在构建我的应用程序时收到以下警告:

Configure project :app WARNING: The following project options are deprecated and have been removed: android.enableUnitTestBinaryResources The raw resource for unit test functionality is removed.

这个警告是关于什么的以及如何删除它?

用Android Studio 3.3+不需要这个配置的robolectric instructions say

因此,请检查您的 gradle.properties 文件并删除此行:

android.enableUnitTestBinaryResources=true

就我而言,我刚刚清除了 gradle 缓存文件,这似乎解决了问题

我的问题通过删除 gradle.properties 的配置得到解决。见下文:

#android.enableBuildCache=true