Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?

Thank you for your reply, then let’s evaluate other integration methods.
Thanks

Hi hechao,

Thanks for the reply. Please feel free to let me know if you have any other questions.

Thanks!

hi chen,
i have the this problem ,and when i used version that does not require AndroidX ,problem is still has;
if i use AndroidX my project is not support to updrade now ,so if i use latest version my spec is:
Android Studio: 3.5.2
Gradle: 3.0.1
Android SDK: API Level 29
if i update gradle to 3.3.2 my project have constraintlayout problem ,lt remind me to use androidx constraintlayout ;but we are big project ,is too difficult to modify all the xml and class we used constraintlayout 。
so could you suggest me how to solve this problem
Thanks!

Hi xu546182762,

Thanks for using Zoom SDK. Are you getting the non-AndroidX version from https://github.com/zoom/zoom-sdk-android/releases? And are you getting the same error message:Multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute when using the non-AndroidX version?

If you are getting the message stated above, that is a warning message and it should not block your usage. As long as you have the same build tool and gradle as our demo app:https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/build.gradle, you should be able to build.

Hope this helps. Thanks!

Hi Carson,
I’m getting the same error
AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.
using
Android Studio: 3.5.3
Gradle: 3.5.3
Android SDK: API Level 29

Hi sarwar.aqsa1,

Thanks for the reply. Did you configure the string.xml file? The following link could be helpful:

You may also refer to the String.xml and the Gradle settings in our demo app:https://github.com/zoom/zoom-sdk-android

Hope this helps. Thanks!

Hi Carson,
I’m integrating zoom sdk in my project which give me this error.
It won’t let me configure string file as mentioned in the link.

Thankyou

Please find attached error log

Hi sarwar.aqsa1,

Thanks for the reply. Were you using the non-AndroidX version of SDK and then upgrade to the Android version of SDK? We no longer provide the non-AndroidX version of SDK so the latest version requires AndroidX. You will need to migrate your project to be an AndroidX project, simply upgrading the SDK from non-Android version to AndroidX version will cause this error.

Hope this helps. Thanks!

Just FYI, I ran into the same issue, and it turns out there was another error causing the build to fail (one of our custom attributes in attrs.xml happened to have a name collision with an internal attribute from the Zoom library), so it might be worth loking a tthe full logs to see what other build errors might be happening.
To make it easier to spot the error, I recommend building the app through the commandline (which should be running a command like ./gradlew assembleDebug, depending on the buildTarget name), and see what errors pop up from the logs.
Hope that helps!

Hi sam3,

Thanks for using Zoom SDK and thank you very much for sharing the info. Happy Zooming! :slight_smile:

minSdkVersion 21
targetSdkVersion 29
Android Studio: 3.5.3
Gradle: 3.5.3
Android SDK: API Level 29
I am getting same it error :
“Multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?”

Hi @shirgaonkarmihir14, thanks for using our SDK.

Have you tried the solutions mentioned previously in this thread? If so, what have you tried?

Thanks!

It is not possible to do formatted="false" as error is in zoom sdk mobilertc.aar file and there are lot of files that is not possible to change.error comes while adding zoom sdk dependency in gradle . i had also tried migrating my project into androidX but still error is same.

thank you

Hi @shirgaonkarmihir14,

Can you please take a look at the suggestions Carson made in this reply and let me know if you are still facing this issue?

Thanks!

yes the error i solved now
thank you so much

I am getting the same error. Error showing in values.xml file in mobilertc module. I tried by migrating into AndroidX and also by doing formatted = false and also changing %1$s. nothing working. How to solve this?

minSdkVersion 21
targetSdkVersion 29
Android Studio: 4.1.3
Gradle: 6.5

I am getting same error :
“Multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?”
Error showing in values.xml file in mobilertc module. I tried by migrating into AndroidX and also by doing formatted = false and also changing %1$s. nothing working. How to solve this?

And also getting another error: "AAPT: error: duplicate value for resource ‘attr/progress’ with config ‘’. It is also in values.xml file of mobilertc module. How to solve this also?
I am unable to modify this value.xml file of mobilertc module.

Hi @aparajita, thanks for using the dev forum.

Can you please specify which version of the Android Gradle Plugin you are using? Also, do you have AndroidX enabled in your gradle.properties file?

Thanks!

Android Gradle Plugin version: 4.1.2

In my gradle.properties file has followings:

android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m