404 Error when running TicTacToe sample (Android) against sample Google App Engine project (Java) -


i set android app , google app engine backend seen in these 2 projects:

  1. android connected app engine project
  2. java app engine backend project

when click tictactoe-field button, triggers request 404 error: "not found"

04-09 23:11:51.115: w/tictactoe(26247): getcomputermovetask: 404 not found 04-09 23:11:51.115: w/tictactoe(26247): not found 

that https://myappname.appspot.com/_ah/api/ in browser shows "not found".

here did:

  1. created api project on app engine console
  2. there created android client id com.google.devrel.samples.ttt package debug keys sha1-fingerprint
  3. there created web client id
  4. integrated android project in eclipse. updated default_root_url in tictactoe.java "https://myappname.appspot.com/_ah/api/"
  5. there updated value of audience in clientcredentials.java replacing string "your_web_client_id" generated web-client-id step 3
  6. integrated java backend project in eclipse.there updated value of application in appengine-web.xml myappname
  7. updated values in /spi/ids.java reflect web-client-id , android-client-id step 2 , 3
  8. updated value of google.devrel.samples.ttt.client_id in war/js/render web-client-id
  9. deployed backend google. worked great - opend https://myappname.appspot.com/ page showing correct page after deploying (servlet)
  10. deployed android app , tried make move in tictactoe. app crashes.

i think suspicious default_root_url set "https://myappname.appspot.com/_ah/api/" in android app whereas pages show "not found" in browser.

whats going wrong here?

thanks in advance

try test api @ https://your_app_id.appspot.com/_ah/api/tictactoe/v1/ , see if doesn't want.

research link:https://github.com/googlecloudplatform/appengine-endpoints-tictactoe-android/blob/master/app/src/main/java/com/google/api/services/tictactoe/tictactoe.java

lines 60-74

https://github.com/googlecloudplatform/appengine-endpoints-tictactoe-java/blob/master/src/com/google/devrel/samples/ttt/spi/boardv1.java

lines 29-31

i suspect have api url wrong, , diving in code apparent above url correct.


Popular posts from this blog