I created and deployed months ago a Google App Engine project in Eclipse with the Google Cloud plugin. Now I'm interested in continue the development of this project in Android Studio to avoid using two different IDEs and to have it integrated with my Android application.
I've found that Android Studio has a wizard to create a new Google Cloud module but I have not found any clue on how to import an existing one. Does anyone know a proper way of doing it avoiding the task of create a new one and paste all the code from eclipse?
Thank you!
If you're using Gradle with the gradle-appengine-plugin you should be able to simply copy the appengine module directory into your android studio project and include it in your settings.gradle. A sync will cause the IDE to detect the module and you can create a new App Engine run configuration and select that module to run the dev server.
If you're using Maven then you'll need to port your build over to Gradle to get it to work with Android Studio.
Related
I want to import my bluemix project to android studio but I was unable to find how to do it. If you know how to import project please share this information.
To get started with an Android Bluemix project, choose a starter here, add capabilities, and download the code.
Subsequently, open up Android Studio and click the Open an existing Android Studio Project button and select your project.
I'm a .Net developer and I've some basic information about java development , I'm developing a multi-device-hybrid-apps using visual studio and cordova.
I use a native plugin for push notifications PushPlugin , I want to do some changes in this plugin using java , i downloaded eclipse and ADT plugin .
actually my problem is in using eclipse not in understanding java code (what is project template in eclipse should i use to create android library ), I've created a new android project and added the PushPlugin code that I downloaded from GitHub , but "android project" is generating an android app not just a jar file to use as a cordova plugin.
What I want is to make some modifications in the plugin code and re-build it using eclipse to generate a new jar file.
please advice.
ok i found a way to overcome this issue , It's mainly caused by my lack understanding to how cordova plugins works , so i decided to write steps , it may help someone who has few knowledge about java and cordova plugins.
to edit a downloaded (with source-code) plugin from github
you don't need to install eclipse at all.
you need to have some knowledge in java and android API
in visual studio navigate to your plugin source code under plugins folder , in this case it's \plugins\com.phonegap.plugins.PushPlugin\src\android\com\plugin\gcm
find the plugin starting class which will be a class extends CordovaPlugin
edit what you want in java code
now in order to re-build java code , you MUST Clean cordova project before making a new deploy.
That's all.
I have developed an Eclipse project (a game based on libgdx). I have included LibGdx library, Facebook SDK and google-play-services_lib. My game uses facebook "share" function and AdMob ads.
After developing it, I made documentation for this project, and I included the link for downloading Eclipse+adt for my client. But when he had followed to this link, he was forced to download Android Studio, not Eclipse. And now I don't know how to import this project to Android Studio.
I tried to import, it was imported well with right project structure.But when I click "Run" button, there are many errors occurs. All third-party libraries are unknown for Android Studio, many classes are not found, etc. I don't know how to setup Android Studio for LibGdx and AdMob (google play services).
You need to include the 3rd party libraries as dependencies in your build.gradle file.
The process is explained very well in the documentation.
I've tried to import my project from Eclipse to Android Studio, but I have not found the right way to do this. It is an app which has two versions, Full and Lite, and both are based on a library-project.
Migrating this to Android Studio and that Gradle-thing is a pain in the ... toe. I've read a bunch of documents, blogs and what-not to get this done, but I do not succeed. Also spent hours importing to Android Studio...
Is there actually any need to do this migration? Will the Eclipse ADT be updated in the future? I'm not going to read a bunch of documents about how Gradle works and spend hours trying to import my application to Android Studio if developing Android-application with Eclipse is an option.
Here are the steps you should follow according to Android Developer:
In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
Click Import Non-Android Studio project.
Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
In the following dialog, leave Use gradle wrapper selected and click OK. (You do not
need to specify the Gradle home.)
It's not necessary or even mandatory. But is it smart? Yes it is. Android Studio with Gradle and Maven are soooo powerful, that you are losing so much time using Eclipse.
Of course, you will have to pass all these painful steps, like we all did. What is Gradle? What is Maven? How do I import library? Where is my code? Why my Manifest does not work? And so on...
so I strongly advise you find a week of your time and learn new IDE by fixing all those things that will arise when you do conversion.
But in the end, you can still use Eclipse or IntelliJ IDEA the old way and leave learning to some other time.
I am using eclipse Kepler
Google app engine 1.8.8
Maven 3.1
I wanted to start working on my first Google App Engine (GAE) project in Eclipse. As always, I wanted to stick to maven with its great dependency management and WAR deployment. Unfortunately,
I got this error message.
So my question why eclipse cannot find SDK? I dont want to add external sdk.
I would suggest to try out the following:
Go to your Eclipse Preferences -> Google -> App Engine. Make sure you are using the App Engine plugin SDK.
Go to Java Project -> Properties. In the Order and Export, make sure that the Eclipse app Engine SDK is higher than the one that your Maven repository is pointing too.
Check this out : How to run maven project on google app engine