Skip to content

NoSuchMethodException: com.android.tools.apk.analyzer.BinaryXmlParser.decodeXml 错误 #1314

@aidaole

Description

@aidaole

基于最新的代码
image
环境:
android studio 版本: Android Studio Iguana | 2023.2.1
jdk版本: 11 和17 均失败

尝试运行 sample-host./gradlew :sample-host:installDebug 一直失败, 提示错误:

> Task :sample-loader:createDebugApkListingFileRedirect
> Task :sample-loader:assembleDebug

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':sample-base:decodePluginDebugBinaryManifest'.
> java.lang.NoSuchMethodException: com.android.tools.apk.analyzer.BinaryXmlParser.decodeXml(java.lang.String, [B)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':sample-app:decodePluginDebugBinaryManifest'.
> java.lang.NoSuchMethodException: com.android.tools.apk.analyzer.BinaryXmlParser.decodeXml(java.lang.String, [B)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions