Warning during App build on Android studio 3.6.1
Asked Answered
B

3

17

I just updated Android studio 3.6.1 and while building my app I got following warning:

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.

What is this warning about and how to remove this?

Blather answered 29/2, 2020 at 8:27 Comment(4)
Update your version of roboelectric?Remora
@Remora I am using the latest version only: testImplementation 'org.robolectric:robolectric:4.3.1'Blather
Downgrade your version? :-) It's an issue in Robolectric I believeRemora
Post your build.gradle.Preestablish
T
34

The robolectric instructions say that this configuration is not necessary with Android Studio 3.3+

So, please check your gradle.properties file and remove this line:

android.enableUnitTestBinaryResources=true
Talapoin answered 12/3, 2020 at 14:12 Comment(1)
Also check both project/gradle.properties and $HOME/.gradle/gradle.propertiesCarloscarlota
I
0

In my case, I just cleared my gradle cache files and that seemed to have resolved the problem

Impression answered 8/6, 2020 at 18:48 Comment(0)
R
0

My problem solved by removing configuration at gradle.properties. see below:

#android.enableBuildCache=true
Renelle answered 24/10, 2021 at 5:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.