I am using the Android ExactTarget push SDK version 4.1.0 pulled through my gradle file. Whenever I try running the app when the user is only using GPS for location (not mobile networks), the app crashes.

I get this error in the log:

java.util.IllegalFormatConversionException: %d can't format java.lang.String arguments
at java.util.Formatter.badArgumentType(Formatter.java:1489)
at java.util.Formatter.transformFromInteger(Formatter.java:1689)
at java.util.Formatter.transform(Formatter.java:1461)
at java.util.Formatter.doFormat(Formatter.java:1081)
at java.util.Formatter.format(Formatter.java:1042)
at java.util.Formatter.format(Formatter.java:1011)
at java.lang.String.format(String.java:1803)
at com.exacttarget.etpushsdk.i.a(SourceFile:1351)
at com.exacttarget.etpushsdk.i.onResult(SourceFile:1322)
at com.google.android.gms.common.api.zzb$zza.zzb(Unknown Source)
at com.google.android.gms.common.api.zzb$zza.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5835)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

Here is my readyAimFire method:

ETPush.readyAimFire(new ETPushConfig.Builder(this)
.setLogLevel(debug ? Log.DEBUG : Log.ERROR)

It looks like the only thing going wrong is when it tries formatting a log message, it crashes. However, even changing the log level does not solve the problem. Anyone have any ideas?

  • Thank you Alex. We are aware of the issue and a fix is forthcoming. – Bill Mote Jan 6 '16 at 13:35
  • @BillMote Is there a temporary work around for now? Is there an estimate on how long until a fix will be available? – Alex F Jan 6 '16 at 14:24
  • We are testing a Hotfix and it should be available shortly. – Bill Mote Jan 7 '16 at 18:28

Thank you Alex. This item has been resolved in hotfix release v4.1.1 and is available for immediate consumption.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.