trouble compiling app

Hi,

I keep getting following message when I try to build my app with latest backendless.jar from github.
I used to work with jar that is downloaded from codegen, and there seems to be some bugs that I mentioned earlier, and wanted download latest version of SDK. The below compile error only occurs when compiling with jar from github, and I can’t figure out how I could “exclude support-v4” from jar.

Is backendless.jar from codegen automatically updated? I downloaded jar from codegen yesterday and It doesn’t include support-v4 and size is only 900KB, where as git one is 1.8 MB with support-v4.

Error:Execution failed for task ‘:app:packageAllDebugClassesForMultiDex’.

java.util.zip.ZipException: duplicate entry: android/support/v4/BuildConfig.class

Regards,
Scott

Hi Scott,

Please grab the latest build from github again - we have updated the build script to exclude support-v4 classes.

Regards,
Mark

Hi Mark,

It’s working. Thanks.

I have one other issue.

Having autoload set for relations objects, relations object retrieved after login is not mapped to class, including GeoPoint.
For eg getGeoPoint() {super.getProperty(“geoPoint”);} crashes, because it’s hashMap.
I didn’t have this issue with iOS SDK.
Am I missing something?

Hi, Scott,

Could you please post all code in your class?

Regards,
Artur.

Hi Arthur,

There’s not much of code to show, I think there’s some mapping issue with Users. relation when autoload is set.
To reproduce the problem

  1. create a class and add to Users.relation
  2. set autoload to Users.relation
  3. add a object to User.relation
  4. login and get the Users.relation object - it should be autoloaded, but not mapped to the class, but HashMap. See below.

Backendless.UserService.login(id, password, new BackendCallback<BackendlessUser>(responder) {
@Override
public void handleResponse(BackendlessUser user) {
Map<String,Object> map = user.getProperties();
AutoLoaded obj = map.get(“autoLoaded”); => crashes obj can not be casted from HashMap to AutoLoaded
}

Respond to below code(save, update, find), map.get(“autoLoaded”) is always type HashMap or HashMap[] for 1 to many relations.
Backendless.Data.of(BackendlessUser.class).save(Backendless.UserService.CurrentUser()
Backendless.UserService.update(Backendless.UserService.CurrentUser()
or
Backendless.Persistence.of(BackendlessUser.class).find or findById

Regards,
Scott