<分区>
我需要添加 -keep class android.support.v7.widget.** { *; }
在 Proguard 配置文件中,但我不知道 Proguard 配置文件位于 Android Studio 中的何处
标签 android
<分区>
我需要添加 -keep class android.support.v7.widget.** { *; }
在 Proguard 配置文件中,但我不知道 Proguard 配置文件位于 Android Studio 中的何处
最佳答案
转到 Gradle Scripts
,然后查找名为 proguard-rules.pro
的文件,您可以在其中进行编辑。
如果您使用的是项目 View
,您可以在这里找到它
来自文档
The proguard-rules.pro file is where you can add custom ProGuard rules. By default, this file is located at the root of the module (next to the build.gradle file).
有关更多信息,请查看 Shrink your code and resources
关于Android Studio Proguard 配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53161004/
相关文章:
android - Facebook SDK v4.0.1 无法使用 gradle 进行编译
android - 重构程序包名称和重命名applicationID仍然使gradle失败
android - MediaStore 图像宽度和高度 null
android - 具有layout_height ="wrap_content"的android XML布局中的ImageView具有顶部和底部填充
android - 我的 Android 应用程序请求位置权限,但我没有请求
android - 我的 Visual Studio Android 模拟器在哪里?