404 Error starting TicTacToe (Android) sample against Google App Engine (Java) sample project

I installed the backend of the Android application and the Google App Engine, as shown in these two projects:

When I click on the TicTacToe field button that launches the request, I get 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 

This is exactly what https: // myappname .appspot.com / _ah / api / shows "Not Found" in the browser.

Here is what I did:

  • Created an api project on the App Engine console
  • An Android client id was created there with com.google.devrel.samples.ttt as a package that contains my SHA1-fingerprint debugging keys
  • Web Client ID Created
  • Integrated Android project in eclipse. Updated DEFAULT_ROOT_URL in Tictactoe.java to "https: // myappname .appspot.com / _ah / api /"
  • Updated AUDIENCE value in ClientCredentials.java, replacing the string "your_web_client_id" with the generated web client-id from step 3
  • Integrated the backend project in Java in eclipse. Updated app value in appengine-web.xml for myappname
  • Updated values ​​in /spi/Ids.java to display web client id and android-client-id from step 2 and 3
  • Updated google.devrel.samples.ttt.CLIENT_ID value in war / js / render with web client id
  • The backend for google is deployed. Works great - it opens https: // myappname .appspot.com / page that displays the correct page after deployment (servlet)
  • An Android application has been deployed and tried to take a step in TicTacToe. The application crashes.

I think his very suspicious my DEFAULT_ROOT_URL is set to "https: // myappname .appspot.com / _ah / api /" in my Android application, whereas on these pages only "Not Found" is displayed in the browser.

What's going on here?

Thanks in advance

+5
source share
2 answers

I don’t know where you get the instructions for step 4 (in your list), but see the Installation Instructions in the Android project, step 2, what you need to do:

Update the DEFAULT_ROOT_URL value in src/com/appspot/api/services/tictactoe/Tictactoe.java to indicate where you are using the Tic Tac Toe backend (based on the Java backend example).

And the place in your case is "https: // myappname .appspot.com /".

0
source

All Articles