Reputation: 55
When I try to install my APK, i get the error:
Failure [-124: Failed parse during installPackageLI: Targeting R+ (version 30 and above) requires the resources.arsc of installed APKs to be stored uncompressed and aligned on a 4-byte boundary]
My steps to build the APK:
apktool build app --use-aapt2 --output app.apk
zipalign -p -v 4 app.apk apk-aligned.apk
apksigner sign --ks-key-alias keys --ks keys --ks-pass xxxxx apk-aligned.apk
Zipalign's output shows that the resources.arsc
is not compressed:
Verifying alignment of apk-aligned.apk (4)...
44 resources.arsc (OK)
In my apktool.yml, resourcesAreCompressed: false
.
It seems that what the error message states is not the case. Is there something wrong in my process?
Upvotes: 2
Views: 301