Android Studio &ProGuard:无法解析符号 getDefaultProguardFile? [英] Android Studio & ProGuard: cannot resolve symbol getDefaultProguardFile?
本文介绍了Android Studio &ProGuard:无法解析符号 getDefaultProguardFile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
IDE:Android Studio 1.1.0
IDE: Android Studio 1.1.0
主题:ProGuard
问题:Android Studio 无法识别 ProGuard 文件或工具,getDefaultProguardFile
无法解决并且没有 proguard-android.txt
和 proguard-rules.txt
文件,见下图:(来自 build.gradle)
Problem: ProGuard files or tools not recognized by Android Studio, getDefaultProguardFile
can not be resolved and there's no proguard-android.txt
and proguard-rules.txt
files in the app, see the image below: (from build.gradle)
如何解决此问题并为我的应用实现 ProGuard 保护?
推荐答案
尝试改成-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
这篇关于Android Studio &ProGuard:无法解析符号 getDefaultProguardFile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文