Apktool icon indicating copy to clipboard operation
Apktool copied to clipboard

[BUG] App crashes after building apk

Open yahu1031 opened this issue 2 years ago • 4 comments
trafficstars

Information

  1. Apktool Version (apktool -version) - 2.8.1
  2. Operating System (Mac, Linux, Windows) - Mac
  3. APK From? (Playstore, ROM, Other) - ROM
  4. Java Version (java --version) - 1.8.0_292

Stacktrace/Logcat

Logs

Steps to Reproduce

  1. apktool d app.apk
  2. change the smali code(Just one line)
  3. apktool b app -o app-edit.apk --use-aapt2
  4. Sign the apk
  5. Install it

APK

Apk link

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? Yes
  2. If you are trying to install a modified apk, did you resign it? Yes
  3. Are you using the latest apktool version? Yes

yahu1031 avatar Sep 20 '23 18:09 yahu1031

Do you know if this app uses Hermes or JSC? That stacktrace is misleading because RN applications sometimes fallback/attempt to load JSC or vice versa Hermes. So I can't tell if the missing object error is the error itself or just "RN"

iBotPeaches avatar Sep 20 '23 18:09 iBotPeaches

More logs

More logs

If you are asking regarding this Hermes, then could be the one right? if not where else i can find it? Screenshot 2023-09-21 at 9 21 17 AM

@iBotPeaches

yahu1031 avatar Sep 21 '23 03:09 yahu1031

This is the jar file if it could help me

yahu1031 avatar Sep 21 '23 03:09 yahu1031

Thanks - I'm convinced it might be this issue now - https://github.com/iBotPeaches/Apktool/issues/2490

iBotPeaches avatar Sep 21 '23 10:09 iBotPeaches