bytedance / AabResGuard

The tool of obfuscated aab resources.(Android app bundle资源混淆工具)
Apache License 2.0
1.3k stars 179 forks source link

请问打包时mapping报错如何解决,每次都是报在mapping文件开头,例如: Unexpected resource dir: com.airbnb.lottie.model.layer.BaseLayer com.airbnb.lottie.model.layer.BaseLayer$$InternalSyntheticLambda$0$8de8db95e85e73fa4ad208291267f612164ecfcd0bc90840382bccb86bd556c0$0.f$0 -> a[Gradle issue] #85

Open pol2edo opened 1 year ago

pol2edo commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Expected behavior A clear and concise description of what you expected to happen.

Info (please complete the following information):

Additional context Add any other context about the problem here.

pol2edo commented 1 year ago

使用如下配置一样会报mapping的错误 distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip classpath "com.android.tools.build:gradle:7.0.2"

插件版本是这个: classpath "com.bytedance.android:aabresguard-plugin:0.1.10"

pol2edo commented 1 year ago

使用如下配置一样会报mapping的错误 distributionUrl=https://services.gradle.org/distributions/gradle-7.0.2-bin.zip classpath "com.android.tools.build:gradle:7.0.2"

插件版本是这个: classpath "com.bytedance.android:aabresguard-plugin:0.1.10"

这个问题通过在app目录下创建一个空mapping.txt解决,不能使用build/outputs/mapping目录下的mapping,遇到同样的问题的小伙伴参考一下。这么久都没回复解决方案,鄙视一下→_→