I am create one smile application in Android + Google App Engine in eclipse. i am trying to deploy that app on Google app Engine but it show the error message
Log Cat :
Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=AppEngineTest2&version=1&
400 Bad Request
Client Error (400)
The request is invalid for an unspecified reason.
at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:282)
at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:235)
at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:214)
at com.google.appengine.tools.admin.ResourceLimits.remoteRequest(ResourceLimits.java:160)
at com.google.appengine.tools.admin.ResourceLimits.request(ResourceLimits.java:127)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:323)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:52)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:400)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Any one have simple Example(with Source code ) of Android + Google App Engine (c2dm) please share it ..
I encountered the same problem as you and solved it in the following way:
Before uploading, first you have to create the application in the App Engine Administration Console (see https://developers.google.com/appengine/docs/java/gettingstarted/uploading)
Check your application id.
The Application Identifier must be between 6 and 30 characters. Only Lowercase letters, digits, and hyphens (-) are acceptable characters. Leading and trailing hyphens are prohibited. - which means that Uppercase letters are not allowed.
appengine-web.xml needs the same application id with which you have created your application in the Administration console. Put this application id between the <application> tag.
Now you can deploy the application with Eclipse
I found this recently as a bug of Eclipse or Google App Engine plugin.
Make sure that you specify the app id correctly in appengine-web.xml. It should be AppEngineTest2, not the URL (AppEngineTest2.appspot.com).
Related
I downloaded the sdk from here, created an application but when i run the app the logcat notifies:
Error 401, Failure: You are not authorized.
I tested the Bluemix app with the sample code you can find here, obviously switching the default parameters with my app's ones.
Solved.
I downloaded the April jars, the most recent ones. That worked.
A 401 error sounds as if the Mobile Application Security (MAS) is not set up correctly. Could you try going to your mobile back end on Bluemix, clicking the MAS service, turning the "Enable Client List" switch to on, and then adding your bundle id under iOS? Additionally, confirm that you've copied the client-id & client secret correctly into the properties file for the application.
I set up the Android App and Google App Engine backend as seen in these two projects:
Android Connected App Engine Project
Java App Engine Backend Project
When I click a TicTacToe-field button, which triggers a request I get an 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 is exactly the what https://myappname.appspot.com/_ah/api/ in the browser shows "Not Found".
Here is what I did:
Created an api project on App Engine Console
There created an Android Client Id with com.google.devrel.samples.ttt as package an my debug keys SHA1-fingerprint
There created a Web Client ID
Integrated the Android Project in eclipse. Updated DEFAULT_ROOT_URL in Tictactoe.java to "https://myappname.appspot.com/_ah/api/"
There updated the value of AUDIENCE in ClientCredentials.java by replacing the string "your_web_client_id" with the generated web-client-id from step 3
Integrated the Java backend project in eclipse.There updated the value of application in appengine-web.xml to myappname
Updated the values in /spi/Ids.java to reflect the web-client-id and android-client-id from step 2 and 3
Updated the value of google.devrel.samples.ttt.CLIENT_ID in war/js/render with web-client-id
Deployed the backend to google. Worked great - it opend the https://myappname.appspot.com/ page showing the correct page after deploying (servlet)
Deployed the android app and tried to make a move in TicTacToe. The app crashes.
I think its very suspicious my DEFAULT_ROOT_URL is set to "https://myappname.appspot.com/_ah/api/" in my Android app whereas this pages show just "Not found" in the browser.
Whats going wrong here?
Thanks in advance
Try to test your API at https://your_app_id.appspot.com/_ah/api/tictactoe/v1/ and see if that doesn't do what you want.
Research from this 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 you have the API URL wrong, and diving in the code its apparent that the above URL is correct.
No idea where are you getting the instructions for step 4 (in your list), but looking at Setup Instructions in the for the Android project, step 2, what you should do is:
Update the value of DEFAULT_ROOT_URL in src/com/appspot/api/services/tictactoe/Tictactoe.java to point to the location where you are hosting a Tic Tac Toe backend (based off of the Java backend example).
And the location in your case is crearly "https://myappname.appspot.com/".
I want to run an android app using bluemix. I followed these steps:
http://www.ibm.com/developerworks/library/mo-android-mobiledata-app/index.html#N10131
But I'm facing an exception saying that the Application ID is not found:
Exception: 07-21 13:03:04.017: E/AndroidRuntime(1776):
java.lang.RuntimeException: Unable to create application
com.ibm.bluelist.BlueListApplication:
com.ibm.mobile.services.core.internal.IBMBluemixException:
IBMBLUEMIX-0042E: Initialization failed because
I have used my own Application ID, secret and route but I'm still getting this error. Can any one please help on this?
Based on the Message ID, I think this is the full error message.
"Initialization failed because no applicationId was specified"
#whitfiea is correct. You need to make sure the AppID is correctly specified for the Mobile Cloud application you are trying to reach (as well as check the other values, the appSecret and the appRoute).
The appRoute should be something like "BlueList.mybulemix.net"
I would also suggested downloading a new set of IBM Client SDK for Android JARs for your project. I would also recommend downloading a new copy of the BlueList sample from JazzHub, as corrections have been made to the application.
One final suggestion, create a new Mobile Cloud Application Backend, just to make sure you are at the current code levels for the client-side and the cloud side.
1.Please try applicationRoute in bluelist.properties file without any prefix like http.
Make sure your application is of type Mobile Cloud under boilerplates.
Verify the below step given in article.
Your Android app will need basic network capability and permissions, so we've included the following permissions in the manifest file. Open up the AndroidManifest.xml file to take a look.
Thanks.
When setting up the example Android application, I updated the configuration file to include my application id that I received when I registered on the development portal. Then when attempting to sign in to the application on my device I see this error message:
The provided value for the input parameter 'redirect_uri' is not valid. The client application must be marked as 'mobile', or the value must be an absolute URL which matches the registered redirect URI.
What do I do to get around this error so that I can sign in with the sample app?
This error is correctable by adding a Redirect Urls setting in the Microsoft Account Developer Center, as pictured below.
Please bear with me as I am a complete noob and trying to create a database for my app using App Inventor.
According to Google App Launcher, I have successfully created my app. However, when I load mcdougaltextspeak.appspot.com into my browser, I get the following message:
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.
I am following the directions provided on http://appinventorapi.com/program-an-api-python/ and I'm sure my issue is because I am not correctly modifying the default app.ymal file
Here's what I have according to the directions:
application: textspeakedtech597
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /images
static_dir: images
- url: .*
script: main.py
I initially just changed myapp to mcdougaltextspeak, however I got a message that I needed to modify the code for python 2.7 according to this site:
https://developers.google.com/appengine/docs/python/python25/migrate27
This site also included modifications for other things, so I am wondering if my error stems from this. The directions do not make note of modifying any other code. Do I need to modify/add the code that appears on the migrate to python 2.7 page (see above link) and if so where does it go.
My app is stuck without a location to hold data.
Any advice on how to proceed is greatly appreciated.
Have you actually created an app on https://appengine.google.com?! You need to do that first, then your app.yaml should contain the appid that you have created i.e. application: mcdougaltextspeak & not what it is in the tutorial.
After you've edited the app as you want, you must then deploy the app to the Google App Engine Servers (refer to the GUI deploy). You would get detailed logs when deploying, which would tell if the deployment was successful or not.
After deploying, you can then goto https://mcdougaltextspeak.appspot.com & play around with your online app. If you still get errors, check https://appengine.google.com/dashboard?&app_id=mcdougaltextspeak for the logs & report them here.