App Engine: Can't get any Tutorial working - java

I try to develop an App Engine project for Android, but I have bugs again and again. I tried to do 3 tutorials in the last days, but got none of them working...
Tutorial 1: Create App Engine Connected Android Project
When creating an App Engine Connected Android Project, I get the following error in the MainActivity: RegisterActivity cannot be resolved to a type.
When i googled this error, I saw that many people had the same error 1 year ago, but nobody could give a good solution yet. Has google been able to solve this bug yet?..
Tutorial 2:
https://developers.google.com/appengine/docs/java/endpoints/getstarted/backend/create_project
This Tutorial uses Maven. I tried to generate the project with following command, because I am not able to do that with the interactive mode:
"mvn archetype:generate -DgroupId=com.google.appengine.samples.helloendpoints -DartifactId=helloendpoints -DarchetypeArtifactId=appengine-skeleton-archetype -DinteractiveMode=false".
It fails and tells me that the archetype doesn't exist.. (appengine-skeleton-archetype)
Well, I don't know what to do here...
Tutorial 3:
https://cloud.google.com/developers/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial
At "Modify the Client Application", when I replace the Code from MainActivity01, I get errors like "CloudEndpointUtils cannot be resolved", because in the MobileAssistant src folder the class CloudEndpointUtils was not created!
Conclusion: Seems like most of the documentation is not up-to-date and the google plugins are pretty bugged... Maybe somebody knows how to solve those errors?
Is there any Tutorial, which is up-to-date and, which shows how to build an easy application for android with appengine and which WORKS? I would like to complete just ANY tutorial and have a stable basic project...

The documentation does work, so the problems may lie in the configuration of your tools. You show considerable persistence, so consider switching to a new installation of tools (Eclipse or whatever). Also prove your tools by building and deploying simpler AppEngine-only projects first before aiming higher for Android-to-AppEngine projects.

Well, actually I had reinstalled eclipse several times because of those and other bugs.. But I think I had installed it correctly with the latest plugins...
Now, to be sure that I install it definitely correctly, I have completely formatted my computer (reinstall windows 8.1)
So, in order to be sure that I do everything absolute correctly, which of the following possible ways to install the whole eclipse setup is better?
Install eclipse kepler WITHOUT ADT. Then install all the ADT-plugins and google-plugins, and then install everything necessary from android SDK manager.
Install ADT Bundle (comes with eclipse juno atm and is version 22.3). Then install google-plugins and update ADT-plugins from 22.3 to 22.6.1. Then install everything necessary from android SDK manager.
I know this shouldn't make a real difference, but I have done that often enough and I still had errors. This time I want to be sure to do it completely right!

Related

Cannot resolve symbol "Override" on "Hello_World"

I installed Android Studio the other day to develop an app and even though it's not the first time I've used it, it's the first time I've installed it on this PC and I'm fairly new to all of it.
Problem: After installing Android Studio, I can't even make a "Hello_World" app, even the templates AS offers have a compiling error:
Where it doesn't recognize symbols like "Override". The Alt+Enter solution that offers is to Setup JDK which does nothing for all options or create annotation 'Override' which doesn't really seem like a good option.
These are both build.gradle files:
Things I've tried to fix it:
Reinstall Android Studio Multiple Times
Download JDK manually and change references.
Check Enviromental Values on system (Add JAVA_HOME and heck Path to be correct). Pretty sure both java and JDK work since in cmd I can run java and javac.
Obviously Build->Clean and File->Invalidate Cache + Restart
android.enableAapt2=false on gradle.properties
Trying to delete all java from my PC and reinstall bare minimum THEN install everything separatedly.
Install all SDK plataforms until Android KitKat.
It's worth noticing that in the past I had a lot of problems getting java to run in only one place (mainly because I install software in an HDD and have OS on another SDD).
Also, while installing AS for the first time I got into a BSOD because of VT-x having shitty interaction with virtualization of anti-virus (that took me a while to figure out) so it stopped halfway. However I've reinstalled a bunch of times so I don't know how that could matter.
The problem is very similar to this one
I'm practically lost here. I've been trying to fix this for three days and I've looked into dozens of Stack-Overflow posts with similar problems, haven't found a solution.
Any idea will be appreciated.
Thanks.
I repeated your error:
I made it by deleting Android SDK(not java SDK) in Android Studio:
File-Settings-AndroidSDK
Try to pick at least one and install
It seems that your problem is related to Android SDK
Okay guys, I've finally figured it out, thanks to artmmslv.
Android Studio's installer detected automatically - two versions of Android SDK which were corrupted (probably caused by BSOD messing up the installation).
I had to make sure to delete everything. Java SDK, Android SDK. Java JRE. Every data from Appdata or documents from Android Studio. Once the computer is clean from any traces of already installed plugins, modules, and whatnot, it should be able to set up perfectly fine paths.
Also, make sure to set up manually and correctly the Environmental Values of java (path edit and JAVA_HOME).
Thanks for the help.
I got a solution that was a problem for me.
(in Build.Gradle file) - It's the
Compile SDK version 32
//which was not the latest one,
I changed it from older (31) in old projects to (32)
And clicked: sync now,
it worked!!
Hope it helps:) Happy coding

Chilli Source Android build on windows

I've tried building the CSEmptyTemplate project in eclipse for android but have run into a host of issues with it.
Looking at the documentation, it doesn't appear as if it should be this difficult.
Firstly, I've installed cygwin and installed the devel package to get make.exe and gcc compilers. I'm also using cygwin as part of the tool chain.
However, the error I keep getting is 'make: *** No rule to make target `all'. Stop.'.
Any advice on fixing these issues would be appreciated.
edit: Found the make files. I was just an idiot last night when working on this.
There shouldn't be any additional steps required to build Chilli Source for android on windows, just the simple steps listed on the website here: http://chilli-source.chilli-works.com/docs/?page_id=67
However setting up the Android Development Tools with the NDK can be a bit of a pain. Judging by the error your getting my gut feeling is that something isn't set up correctly there.
Chilli Source requires the latest versions of the SDK, NDK and ADT. Can you ensure you have:
Android API level 21.
The latest versions of the Built Tools, Platform Build Tools and Google Play Services.
NDK revision 10c.
The latest ADT is also missing a couple of things that means it can't be used out of the box.
It doesn't come with the native dev tools which can be acquired by doing the following:
Go to "Help" then "Install New Software..."
Select "Android Developer Tools Update Site - https://dl.google.com/android/eclipse". You make have to edit it to instead point to https://dl-ssl.google.com/android/eclipse
In Developer Tools select and install Android Native Development Tools.
It also doesn't come with ant. This isn't causing your issue, but it will cause issues later on, so get it following these steps:
Go to "Help" then "Install New Software..."
Select "Juno - http://download.eclipse.org/releases/juno"
In General Purpose Tools select and install Eclipse Plug-in Development Environment.
Now that you've got everything required, ensure that you've got it set up correctly:
The correct version of the SDK selected the Android tab in preferences.
The correct version of the NDK selected in the Android/NDK tab in preferences.
Android 5.0 selected in the Android tab in Project Properties.
Finally, on windows you also need Cygwin. It's been a while since I've used it (I'm not a fan of cygwin so I do my Android development in a Ubuntu virtual machine) but only the "devel" package is needed iirc, so make sure you've at least got that.
Hopefully ensuring all of that is set up correctly will fix your problem!

Installing java on Eclipse C/C++ Developers IDE (Kepler)?

I already have Eclipse Installed for C/C++ Prgorams. I have the Kepler Service Release 1.
I am planning to learn Android App Development so I need java, so is there a way to install java on this version? I don't want to do it manually like going on the website and downloading another eclipser. Is there a plugin for java?
If so can someone guide me through?
Well it should be same as installing a plugin. So go to install new software menu.
Then select the eclipse update site http://download.eclipse.org/releases/kepler and in the programming languages section select java development tools. You can also search it using the search bar.
The thing that I know You can update it on your current eclipse. Go to help on eclipse and click updates
http://download.eclipse.org/eclipse/updates
But there is a painful problem with update it. If I were you I would either use netbeans or re-install eclipse. Either one is going to be a easier solution than update.
Like the previous answeres say, you should be able to update it. But I made the experience that updating something to eclipse can be really tricky. You will also need the Android stuff. You can download eclipse with the Android SDK here: http://developer.android.com/sdk/index.html?utm_source=weibolife

Android Project with ActionBarSherlock doesn't get built

I implemented the current version of ActionBarSherlock to my Android Project.
Everything works fine and I don't get any errors.
But when I try to debug or export my project I don't get an .apk-file out of my project. Just a .jar-file with the name of my project.
I've read about some problems the SDK had with building projects that contain external libraries but this was at SDK version 14 and so I hope, this bug is fixed...
So there might be another cause for this problem.
Does anybody know a possible solution?
You cannot get *.jar file as the result of building Android project. This seems very strange to me. There must be something wrong with your project settings (if you changed them), or the project you build is of the wrong type (i.e. it is Java Application instead of Android Application).
You didn't mention which IDE do you use, but I assume you use Eclipse.
Make sure you have installed Android SDK and Eclipse ADT correctly (just in case).
Next thing to try is to create a new Android Application project from existing sources (there should be such option during the process of creation).

Is the Google Eclipse Plugin for Juno (Eclipse 4.2) broken?

I just installed Eclipse EE Juno (4.2) and a whole slew of plugins for it. I am now attempting to install the Google plugin (GAE and GWT) and am getting an error when adding the update site through Juno's Install new software window:
Name: Google-Plugin
Location: http://dl.google.com/eclipse/plugin/4.2
When I try to enter this I get:
Could not find http://dl.google.com/eclipse/plugin/4.2
I see this question from a few months ago. Although I am having a very similar problem, I think I have a different problem altogether.
When I change the Location to http://dl.google.com/eclipse/plugin/3.7, I get the same error (except with 3.7 appended on the end of the error message instead of 4.2). I definitely have Internet access (how else would I be posting this question?!) so that's not the issue. If this was only working for the 4.2 plugin, I would happily try the "workaround" mentioned in the other post, or even step back down to Eclipse 3.7 (I have to have this plugin!) until 4.2 was working. But the fact that it's not even working for 3.7 tells me that something else is awrye here. Thanks in advance!
Edit:
Just to mess around with things, I have downloaded Indigo (3.7) and immediately attempted to install the Google-Eclipse plugin. I entered the following for my update site:
http://dl.google.com/eclipse/plugin/3.7
And received a nasty error:
Artifact not found: http://dl.google.com/eclipse/plugin/3.7/compositeContent.xml.
Artifact not found: http://dl.google.com/eclipse/plugin/3.7/compositeContent.xml.
http://dl.google.com/eclipse/plugin/3.7/compositeContent.xml
Am I going crazy here?!?! I've installed my fair share of Eclipse plugins and never had this much trouble. Especially from Google. And I know its not my Internet connection or my Eclipse instance because before I attempted to install the Google plugin, I installed Subversive, IvyDE and EclEmma...
It was also broken for me a little while ago, but seems to be working now. Maybe the site was down for a bit?
You can try installing the plugin from archive as described in the link:
https://developers.google.com/eclipse/docs/install-from-zip
Basically what you are doing is, you download the plugin as a zip(archive) and browse this archive instead of update site, during the plugin installation.

Categories

Resources