简体   繁体   中英

Failed Creating App Engine Connected Android Project

I am trying to create 'App Engine Connected Android Project' on Eclipse 4.2(Juno) but am facing 2 errors:

1) The first error shows up while creating new project:

Creation of Element Failed.
Reason:
Unknown protocol : d

And yet new project files are created in workspace under project's name. I have installed latest Google plugin for Eclipse, ADT and Android Platform tools. I am not facing any problem while creating 'Android Application' project but while creating 'App Engine Connected Android Project' Eclipse is showing me this error.

2) I can see the newly created project files in workspace but there is one error in MainActivity.java file under src folder saying: RegisterActivity cannot be resolved to a type

I am working on Win7 Professional 64bit and Eclipse 4.2(32bit).

Did I forget to install any plugins? What should I do?

I had a similar problem. What you can do is right-click on your android project, Google > Generate AppEngine Backend . The AppEngine project will automatically be created.

Then, on AppEngine project you can right click, Google > Generate Cloud Endpoint Client Library to create Endpoints. if you still get RegisterActivity cannot be resolved to a type error, please change your java compiler to 1.6.

It worked for me.

This is not really an answer but too long for a comment.

I see some comments above suggesting that user shouldn't be using "App Engine Connected Android Project".

That was my impression too, but now I'm not sure. It is still prominent in the docs (with a last updated of February 14, 2013), it says nothing about being deprecated, and I found a post from August saying that they only removed it temporarily and would be adding it back again (with GCM support).

It appears that they updated it for Endpoints and GCM, and it is still alive. It is an alternative to creating a Android project and then using "Generate AppEngine Backend" wizard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM