Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

NoClassDefFoundError in sample project #2

@GarretPolk

Description

@GarretPolk

There's a small but critical bug in the sample. One of the external libraries are not exported into the final APK so the app fails during startup.

To fix this (in Eclipse) go to the Java Build Path -> Order and Export and check the box for "Google APIs". Clean and rebuild the project. The APK should now be around 724KB and run correctly.

Errors seen in the sample project:

05-21 12:32:16.246: E/dalvikvm(16042): Could not find class 'com.google.cloud.backend.android.mobilebackend.model.EntityListDto', referenced from method com.google.cloud.backend.android.CloudBackend.updateAll

05-21 12:32:16.256: W/dalvikvm(16042): Unable to resolve superclass of Lcom/google/cloud/backend/android/mobilebackend/model/EntityListDto; (39)
05-21 12:32:16.256: W/dalvikvm(16042): Link of class 'Lcom/google/cloud/backend/android/mobilebackend/model/EntityListDto;' failed

05-21 12:39:02.039: E/AndroidRuntime(16042): FATAL EXCEPTION: main
05-21 12:39:02.039: E/AndroidRuntime(16042): java.lang.NoClassDefFoundError: com.google.cloud.backend.android.GCMIntentService

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions