1

I have 2 endpoints in my GAE Java project. When I use the GPE eclipse plugin to generate the client library for my Android project, the code is generated without any errors. (I don't know why the generated code is in the package com.google.api.services).

The problem is, when I launch my Android app, a NoClassDefFoundError is thrown for the class, DeviceInfoEndpoint$Builder, and the app crashes.

This is after I updated the ADT and the GAE plugin to the latest version. It was actually working well before that.

I even tried with the endpoints.sh script to generate the client library. Getting an EntityExistsException on that. I am literally struck now.

Any help would be appreciated.

Rahim
  • 918
  • 1
  • 12
  • 23
  • 1
    try this. right click on your project. gotto properties java build path. make sure you have check android private libraries for both your project and library project. clean and build – Raghunandan Jun 12 '13 at 16:48
  • 1
    thanks @Raghunandan, I found this out just a minute ago. – Rahim Jun 12 '13 at 17:15

1 Answers1

1

After more than 2 days of dead stop, found out that I needed to check Android Private libraries and Android 4.2 in (Build path -> Configure build path -> Order and Import).

https://stackoverflow.com/a/16784945/902572

Community
  • 1
  • 1
Rahim
  • 918
  • 1
  • 12
  • 23