当我之前发布我的应用程序时,它运行良好,但现在我尝试上传我的应用程序的新版本,Google Play 说它有一些 java/kotlin 代码,并要求我上传一个反混淆的 txt 文件。我一直在寻找答案,人们提到了当您使用 proguard 或 R8 代码压缩器时 android studio 创建的“mapping.txt”文件。
有谁知道我可以在哪里生成这样的文件或它可能在哪里?
注:自从我上次更新应用程序以来,我没有添加或升级任何 nuget 包,而且我已经在 bin/obj 文件夹中查看了,但没有运气。我还检查了捆绑应用程序时创建的存档文件夹。
最佳答案
构建 Xamarin Android 应用程序时禁用 ProGuard 的混淆步骤。因此,不会生成反混淆文件,也无需上传。您可以忽略警告。
来自 Xamarin.Android documentation :
The Xamarin.Android ProGuard configuration does not obfuscate the APK. In fact, it is not possible to enable obfuscation through ProGuard (even through the use of custom configuration files).
编辑:当前有一个 open PR在 Xamarin.Android 中让 ProGuard 生成
mapping.txt
文件。请注意,这只是为了使警告静音。理论上是不需要的。
关于xamarin.forms - Google Play 要求反混淆 txt 文件,Xamarin Forms,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62538327/