Someone help me with this error with startapp !!

Some of my users (not all) have reported that the app is crashing at the start. When i checked the error in my developer console i saw this :

java.lang.NoSuchMethodError: android.content.SharedPreferences$Editor.putStringSet
at com.startapp.android.publish.model.MetaData.init(Unknown Source)
at com.startapp.android.publish.a.d.a(Unknown Source)
at com.startapp.android.publish.a.d.onPostExecute(Unknown Source)
at android.os.AsyncTask.finish(AsyncTask.java:417)
at android.os.AsyncTask.access$300(AsyncTask.java:127)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)

Is anyone else having this problem. Have i implemented the code wrong?

Hi Akshay,

I have forward this to our tech team to take a closer look.

At any point, you may contact [email protected] for help on everything.

Ariel.

setStringSet is available from API Level 11. You should use this method if you are setting your minSdkVersion to 11 or higher so these users probably use older version of Android than Honeycomb.

Sorry for my bad English :wink:

Hi Rafal,

A new version of the SDK is available in the portal which fixed this issue.

Thanks, and sorry for the issue.

Ariel.

No it didn’t. I tried the latest sdk as well, still its crashing on the EULA screen. Problem is only with Android 2.3.x.