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 while Building app #53

Closed
Udhayarajan opened this issue May 12, 2021 · 4 comments
Closed

Error while Building app #53

Udhayarajan opened this issue May 12, 2021 · 4 comments
Labels
apktool Issues caused by or related to Apktool

Comments

@Udhayarajan
Copy link

Udhayarajan commented May 12, 2021

  √ 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.5.0
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: C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\decode\res\values\animators.xml:3: error: Found tag animator where item is expected
W:
W: C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\decode\res\values\anims.xml:3: error: Found tag anim where item is expected
W:
W: C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\decode\res\values\ids.xml:9091: error: Found tag id where item is expected
W:
W: C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\decode\res\values\layouts.xml:3791: error: Found tag layout where item is expected
W:
W: C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\decode\res\values\styles.xml:3782: error: Resource entry InThreadComposerTextArea already has bag item android:textColorHint.
W: C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\decode\res\values\styles.xml:3781: Originally defined here.
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Udhaya\AppData\Local\Temp\brut_util_Jar_24173194710588018797807579936311536666.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 289692181, --version-name, 187.0.0.32.120, --no-version-vectors, -F, C:\Users\Udhaya\AppData\Local\Temp\APKTOOL4306874752780290107.tmp, -e, C:\Users\Udhaya\AppData\Local\Temp\APKTOOL8861453930364176705.tmp, -0, arsc, -I, C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\framework\1.apk, -S, C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\decode\res, -M, C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\decode\AndroidManifest.xml]

  The full logs of all commands are available here:
  C:\Users\Udhaya\AppData\Local\Temp\apk-mitm-5875c039835a01dd9b0b18b091a8b768\logs
@shroudedcode
Copy link
Owner

Please provide the contents of the encoding-aapt2.failed.log file. You can find it inside the directory logged at the end.

@shroudedcode shroudedcode added the apktool Issues caused by or related to Apktool label May 13, 2021
@Udhayarajan
Copy link
Author

encoding-aapt2.failed.log
@shroudedcode hope you could resolve

@shroudedcode
Copy link
Owner

You seem to be running into the same issue that was reported to the APKLab repository here. I can only second the maintainer's reply: This problem is caused by Apktool (which both apk-mitm and APKLab depend on) and there's not much I can do about it. You could try opening the APK in APKLab (which is basically an IDE for reverse engineering Android apps), editing the files in question (this comment describes one possible fix), and compiling the app again (using APKLab), but I can't guarantee this will work.

@Udhayarajan
Copy link
Author

Udhayarajan commented May 14, 2021

@shroudedcode Ok lemme try your solution. Anyway thanks for making this wonderful application 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apktool Issues caused by or related to Apktool
Projects
None yet
Development

No branches or pull requests

2 participants