sdk-android icon indicating copy to clipboard operation
sdk-android copied to clipboard

Ressources cannot be bundled with latest version of aapt

Open fntc opened this issue 5 years ago • 2 comments

Consuming SDK in Xamarin by creating Binding Wrappers. When using those Binding Libraries Ressources are bundled at apk level using a new version of aapt. The build fails because one ressource string (refunds_amount_description) uses multiple placeholders that are not numbered.

Old versions of aapt write only a warning into the log like that (all languages): .....gradle\caches\transforms-2\files-2.1\259216afb29571d06e4d1303dd438c77\jetified-android-sdk-ui-1.14.15\res\values\values.xml:806:4: Multiple substitutions specified in non-positional format of string resource string/refunds_amount_description. Did you mean to add the formatted="false" attribute?

For new versions of aapt this is thrown as an error, meaning the issue will be observed for pure java/kotlin android projects too.

Please fix refunds_amount_description by using something like %1$s and %2$s instead of %@

fntc avatar Jul 09 '21 06:07 fntc

Hi, thank you for your feedback and patience!

I've added this to our backlog and the team will look into it.

bobzettle avatar Dec 09 '21 07:12 bobzettle

Hi, the refunds_amount_description got updated with SDK version 1.24.0.

If your problem remains, feel free to to reopen the issue again. But until then I will resolve and close it.

Thank you!

bobzettle avatar Jan 03 '22 09:01 bobzettle