0

I am trying to integrate Google Cloud datastore into my android app to store and retrieve entities. I have a class which will correspond to a Datastore entity which has several fields which will correspond to its properties.

From my research there seems to be several approaches and having tried some of them they always hit some problem which I have been unable to fix.

What is the simplest approach for this? I just want to store instances of this class (with their properties) in GCD.

Approaches I've tried:

enter image description here

  • Cloud Datastore Client Library for Java: (https://cloud.google.com/datastore/docs/reference/libraries) This seems like it could be nicest approach because in the class I can have a sync method which update/creates an entity however adding the dependancy in Gradle causes the a failure with :app:transformResourcesWithMergeJavaResForDebug. I've tried all of the packagingOption exclusions that solutions on SO suggest but no combination I've tried works.

So two questions:

a) What approach is best for my use case? (I.e. simple as possible)

b) For the proposed solution, what am I doing wrong?

DomAyre
  • 828
  • 1
  • 11
  • 23
  • 1
    Strange... If you follow exactly the Romin Irani's tutorial it should work correctly. – Renaud Tarnec Dec 31 '16 at 23:11
  • With the error you're getting, you probably want to look at your dev server logs for the real error. – saiyr Jan 03 '17 at 19:16
  • Possible duplicate of [appengine endpoint Failed to retrieve API configs with status: 500](http://stackoverflow.com/questions/21951482/appengine-endpoint-failed-to-retrieve-api-configs-with-status-500) – Dan McGrath Jan 04 '17 at 13:29
  • can you please post how you configured Objectify and Endpoints? can you please post your web.xml? – Michael Meyer Jan 07 '17 at 08:55

0 Answers0