我混淆了我的apk,但文件大小只从12MB减少到10.5MB.
它只是一个相对较小的减少的原因可能是因为我的应用程序使用了几个大型库,但有没有办法可以检查已经执行的混淆程度?
以防万一,这是我的proguard-project.txt文件......
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options …Run Code Online (Sandbox Code Playgroud) 我想在Android Studio中生成已签名的APK,它为我提供了运行ProGuard的选项.它要求我给出配置文件路径,但我没有配置文件.如何创建一个?我应该使用ProGuard吗?您是否可以轻松解压不使用ProGuard的APK文件?
编辑:谢谢你的答案,但我无法在任何地方找到proguard.cfg文件.我在项目的根目录中只有属性文件是local.properties文件,当我在Android Studio中打开它时,我得到了这个:
# This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=C:/.../...
Run Code Online (Sandbox Code Playgroud) 我一直试图将文件导入到我使用apktool反编译的android studio中。但是,当我尝试将文件导入Android Studio时,“项目”浏览器上没有显示任何内容。在导入过程中,第一步,我选择了“从现有资源创建项目”。反正有解决此问题的方法吗?另外,是否有在Android Studio中使用记事本++中的文件?
谢谢。