-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
NoSuchMethodException: com.android.tools.apk.analyzer.BinaryXmlParser.decodeXml 错误 #1314
Comments
如果是最近build tools更新了,导致找不到这个方法,我们就得重新适配了。你可以看下版本号,我看看能不能复现。 也可以按 https://github.com/Tencent/Shadow/blob/master/CONTRIBUTING.md 中的说明去debug gradle插件。加log也是个选择。 相关逻辑可以搜索commit message找到。 |
问题已经找到, 是因为我的电脑上配置了Flutter的环境, 将 |
你好 我也遇到了这个问题,一直没找到原因,请问有什么思路可以分享吗 |
下一个新一点的cmdline-tools,替换原来旧的目录,再来编译就没问题了,我是这样解决的 |
lastest 的方法签名变了,自己改下 ShadowPlugin 的 createGeneratePluginManifestTasks 就行,里面反射了 decodeXml 方法。 |
Tencent#1314 (cherry picked from commit dc5bafb)
基于最新的代码
环境:
android studio 版本: Android Studio Iguana | 2023.2.1
jdk版本: 11 和17 均失败
尝试运行
sample-host
和./gradlew :sample-host:installDebug
一直失败, 提示错误:The text was updated successfully, but these errors were encountered: