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

error: xml parser error: not well-formed (invalid token). #160

Closed
umrashrf opened this issue Apr 27, 2024 · 1 comment
Closed

error: xml parser error: not well-formed (invalid token). #160

umrashrf opened this issue Apr 27, 2024 · 1 comment

Comments

@umrashrf
Copy link

$ apk-mitm myapp.apk

  ╭ apk-mitm v1.3.0
  ├ apktool v2.9.3
  ╰ uber-apk-signer v1.3.0
  
  Using temporary directory:
  /tmp/apk-mitm-1bfb3a7a2d51e7203463833ba3d634cb

  ✔ Checking prerequisities
  ✔ Decoding APK file
  ✔ Applying patches
  ❯ Encoding patched APK file
    ↓ Encoding using AAPT2 [skipped]
      → Failed, falling back to AAPT...
    ✖ Encoding using AAPT [fallback]
      → I: Building resources...
    Signing patched APK file

   Failed!  An error occurred:

I: Using Apktool 2.9.3
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: <tmp_dir>/decode/res/values-ar-rSA/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-ar-rSA/strings.xml: error: file failed to compile.
W: <tmp_dir>/decode/res/values-ar/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-ar/strings.xml: error: file failed to compile.
W: <tmp_dir>/decode/res/values-bg/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-bg/strings.xml: error: file failed to compile.
W: <tmp_dir>/decode/res/values-bn-rBD/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-bn-rBD/strings.xml: error: file failed to compile.
W: <tmp_dir>/decode/res/values-bn/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-bn/strings.xml: error: file failed to compile.
W: <tmp_dir>/decode/res/values-ca-rES/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-ca-rES/strings.xml: error: file failed to compile.
W: <tmp_dir>/decode/res/values-cs/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-cs/strings.xml: error: file failed to compile.
W: <tmp_dir>/decode/res/values-da/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-da/strings.xml: error: file failed to compile.
W: <tmp_dir>/decode/res/values-de/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-de/strings.xml: error: file failed to compile.
W: <tmp_dir>/decode/res/values-el/strings.xml:0: error: xml parser error: not well-formed (invalid token).
W: <tmp_dir>/decode/res/values-el/strings.xml: error: file failed to compile.
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_7440351161326729974693599868025020535.tmp, compile, --dir, <tmp_dir>/decode/res, --legacy, -o, <tmp_dir>/decode/build/resources.zip]

  The full logs of all commands are available here:
  /tmp/apk-mitm-1bfb3a7a2d51e7203463833ba3d634cb/logs
@umrashrf
Copy link
Author

umrashrf commented May 6, 2024

Closing for #133

@umrashrf umrashrf closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant