bytedance/AabResGuard

请问打包时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]

pol2edo opened this issue · 2 comments

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):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • AabResGuard version [e.g. 0.1.1]
  • Android studio version: [e.g. Android Studio 4.0 Canary 7]
  • AGP version: [e.g. com.android.tools.build:bundletool:3.2.1]
  • Gradle version: [e.g. gradle-5.1.1]

Additional context
Add any other context about the problem here.

使用如下配置一样会报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"

使用如下配置一样会报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,遇到同样的问题的小伙伴参考一下。这么久都没回复解决方案,鄙视一下→_→