where is the proguard mappings.txt file generated when using JACK?

拜拜、爱过 提交于 2019-12-24 03:27:53

问题


I have been trying to use the latest JACK and JILL build system to for my android project. I know that JACK process includes the proguard processing.

But after that i couldn't locate the mappings.txt file for back-tracking stack-trace of bugs provided on google play developer console.

Please help me LOCATE mappings.txt.

Another related question is if the shrinkingResources still works while JACK because shrinkingResources requires minifyEnabled true but JACK requires minifyEnabled false.

Project Config--

compileSdkVersion 24
buildToolsVersion "24.0.0"

classpath 'com.android.tools.build:gradle:2.1.2'

UPDATE--

Answer posted by T. Neidhart is NOT a working solution.


回答1:


To enable obfuscation/shrinking with JACK you need to set minifyEnabled to true. It was unsupported in earlier versions, but now JACK has its own obfuscation and shrinking implementation (not using ProGuard at all) that can process some of the original ProGuard rules (for a complete list of supported options refer to Jack obfuscation and shrinking).

Once the configuration is properly setup, the mapping.txt file will be located in the same place as before: build/outputs/mapping/<buildtype>/mapping.txt




回答2:


There is nowhere to find that mappings file as JACK internally process proguard and there are some issues pointed on android tools site while enabling JACK.

So for now not using JACK is the best option if you care tracing back exceptions in your apps.



来源:https://stackoverflow.com/questions/38196100/where-is-the-proguard-mappings-txt-file-generated-when-using-jack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!