I am developing an app for android with endpoints in the server side and I need to use GCM to push notifications. If I run localy it's all fine, I don't have any errors. But when I deploy the project on app engine and I sent a notification I have this error
com.google.api.server.spi.SystemService invokeServiceMethod: com/google/android/gcm/server/Sender
java.lang.NoClassDefFoundError: com/google/android/gcm/server/Sender
I added gcm-server.jar correctly to the build path, proof is I can run locally without errors.
Thanks.
You have the gcm-server.jar file to the Build Path and that helps out locally when trying to compile, build and run locally.
When deploying to the App Engine environment, please put your additional JAR files in the WEB-INF\lib folder also. Deploy it after that.
Related
I have setup a project in Firebase to run Instrumented Test for my app. I created the project from Android Studio, then I went to the Firebase Console and moved the project to Blaze Plan. I logged in and setup the project in Android Studio, so far so good, the thing is that when I try to run the test in Firebase using the Sample Spark Configuration but Android Studio never finishes to upload the APK, I don't have any error neither, what I get in Android Studio RUN console are the following lines:
Testing started at 11:29 ...
Using Cloud Storage Bucket location test-bucket-id
Uploading app APK ...
So, it seems there are some issue witht the bucket or with the project, but I'm not able to read any error anywhere. So, where can I access any log to know what is going on? Does a firebase project expose logs though its web UI or does Android Studio allows me to get some kind of logs besides what I get on the build window?
I had the same issue. Turned out there wasn't anything wrong with the project or the bucket. All I had to do was specify the package of my instrumented tests instead of using the "all in module" option in the run configuration.
I have worklight app project on my local, one of my colleague has already deploy app on Worklight Server 6.1, he provided me apk and ipa both, I have installed ipa in my iPhone.
Now when I do some changes in the code for that app and deploy it doesn't give me update in my iPhone, i tried another android device but the update is not coming on that also, This work perfectly when I access my browser console (server console) for that app. but for device its not working
I have worklight studio 6.1, Server 6.1. While deploying i am giving correct URL and context, and on server console updating .wlapp for all environment.
I checked with my colleague and he is doing same step and when he updates something and deploy it works but when I do it doesn't
Please let me know what I am missing here
Thanks
Your explanation has many holes in it, making it difficult to understand your scenario. You need to explain it better and with far more detail about your environment, about your colleague's environment, about how s/he and you are building the project and where to you are deploying it.
Edit your question with the above.
Trying to understand what you wrote... do you mean that:
You have some Worklight project in your local Worklight Development Server (Worklight Studio).
You provide the project to your colleague who does... what with it? builds it? Where? in his OWN Worklight Development Server? and then provides you the .ipa and .apk?
To where does you colleague point the app? to his own server?
If you install an .ipa or .apk that points to server X (your colleague's) and the you build it again, in your own server, and do not point it to server X as well (AND deploy the .wlapp in server X), you will never get the update in the device.
You need to make sure what is the serving Worklight Server for the application.
You need to make sure to build the application and deploy it for that server.
This you set-up in Run As > Build Settings and Deploy Target.
You need to then Run As > Build application, and the deploy the generated .wlapp to server X
Then, the installed app will receive an update.
I created simple Android App which sends a Person object to Android App Engine.
It works great locally: I can see all my records : http://localhost:8888/_ah/admin/datastore?kind=MessageData but now I want to upload it to real google cloud. What I suppose to do?
I have my google cosnole: https://console.developers.google.com/project/apps~boazeriasciana?authuser=0&redirected=true&utm_referrer=https:%2F%2Fwww.google.pl%2F
Where to look for my records? Is there any tutorial for THIS step?
These are my classes:
If you already created your project on app engine, all you need to do is check the configuration on your config xml file and deploy from the console.
If you are using Maven for building your code, check this resource, if you are using Gradle, you can read from step 6 on from this endpoints example.
In any case it all comes down to checking your XML file to check that config is ok and executing the command to deploy your server.
Maven:mvn appengine:update
Gradle:./gradlew todoTxtBackend:appengineUpdate
I have built an Android application that uses AWS S3. I am successful in building the application. The application works fine if I compile and execute on a simulator.
If I try to release the application (built using progaurd), when I try to run the application it crashes with the message "Failed to parse regional endpoints". I tried different progaurd configurations, trying different way of including JARs but nothing is working.
I am using AWS sdk 1.7.1.1.
Please let me know if you have faced similar issue and found a solution.
Thanks
- SVJK
Hi i am new to android development.
I am creating one application. I need to send sample application to client for testing purpose.
In iPhone development we can send .ipa file to client using TestFlightApp. Is there any way to do this similar way for Android application testing.
Please help me in this issue.
Thanks in advance
each time you build your application, an apk file is created in your project's bin folder. you can use that file for testing purposes
Right click on your application project folder
Scroll down to Android tools
click on : Export as signed Android application
Use the debug key located on your sdk folder to sign the app
,the password's key : android
and you will get a debug signed apk ready to install on any device .
To keep track of your apks you may create a string variable and use it as build tag so you don't get confused by multiple apks .
I'm doing so on my project , you can also create an unsigned apk but I don't know if you will be able to install it on a real device .
Some use maven to build the apk but it's more complicated .