在Android Studio 3.6.1上构建App时发出警告 [英] Warning during App build on Android studio 3.6.1

查看:1322
本文介绍了在Android Studio 3.6.1上构建App时发出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

配置项目:app 警告:以下项目选项已被弃用并被删除: android.enableUnitTestBinaryResources 删除了用于单元测试功能的原始资源.

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?

推荐答案

机器人说明说 Android Studio 3.3 +

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

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

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

android.enableUnitTestBinaryResources=true

这篇关于在Android Studio 3.6.1上构建App时发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆