Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问打包时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 this issue Oct 10, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@pol2edo
Copy link

pol2edo commented Oct 10, 2022

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.

@pol2edo pol2edo added the bug Something isn't working label Oct 10, 2022
@pol2edo
Copy link
Author

pol2edo commented Oct 11, 2022

使用如下配置一样会报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 pol2edo changed the title 请问第三方依赖库的怎么配置,例如: Unexpected resource dir: com.airbnb.lottie.model.layer.BaseLayer com.airbnb.lottie.model.layer.BaseLayer$$InternalSyntheticLambda$0$8de8db95e85e73fa4ad208291267f612164ecfcd0bc90840382bccb86bd556c0$0.f$0 -> a[Gradle issue] 请问打包时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] Oct 12, 2022
@pol2edo
Copy link
Author

pol2edo commented Nov 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants