Backendless Support
 
Answered

support for old android api

Hey guys,

I have an app with thousands of user with android api 14-19. I've started migration to baclendless v.4, created new app in admin panel, added android sdk v.4.0.1

and I have next error:

  1. FATAL EXCEPTION: main
  2. java.lang.NoClassDefFoundError: java.util.Objects
  3. at com.backendless.Persistence.find(Persistence.java:638)
  4. at com.backendless.DataStoreFactory$1.find(DataStoreFactory.java:188)
  5. at com.lucky.notewidget.network.NBackendless$Register.updateContacts(NBackendless.java:446)
  6. at com.lucky.notewidget.network.NBackendless$Register.access$1000(NBackendless.java:374)
  7. at com.lucky.notewidget.network.NBackendless$Register$1.handleResponse(NBackendless.java:388)
  8. at com.lucky.notewidget.network.NBackendless$Register$1.handleResponse(NBackendless.java:386)
  9. at com.backendless.UserService$8.handleResponse(UserService.java:790)
  10. at com.backendless.UserService$8.handleResponse(UserService.java:775)
  11. at com.backendless.async.message.AsyncMessage$ResponseHandler.handle(AsyncMessage.java:64)
  12. at com.backendless.async.message.AsyncMessage.handleCallback(AsyncMessage.java:41)
  13. at com.backendless.core.AndroidCarrier$1.handleMessage(AndroidCarrier.java:37)
  14. at android.os.Handler.dispatchMessage(Handler.java:95)
  15. at android.os.Looper.loop(Looper.java:137)
  16. at android.app.ActivityThread.main(ActivityThread.java:4441)
  17. at java.lang.reflect.Method.invokeNative(Native Method)
  18. at java.lang.reflect.Method.invoke(Method.java:511)
  19. at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  20. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  21. at dalvik.system.NativeStart.main(Native Method)

Also I've found this answer: https://stackoverflow.com/a/44543037/2946353

So I have reasonable question, how to support my users with old devices?

Can I use backendless v.4 with android backendles sdk v.3, because I have no problem on sdk v.3?

Or I should to write my own rest client to work with api?

It will be friendly from your side to write more recomendations, for example min android api on https://github.com/Backendless/Android-SDK

Thank you for your work.

Best Regards, Oleg Tarashkevich

Leave a Comment

Comments (2)

photo
1

Hello,

the 3.x library will not work with the 4.0 backend.

Your best option is to fork the repo and refactor the code so it does not use any newer Android classes. I think this would be a less labor intensive process than writing your own rest client.

Regards,

Mark

photo
1

Thank you for your suggestion

have a nice day!