I've started to get into Android Development and i downloaded the ADT bundle of the android developers page, but it doesn't seem to be working for me. So now I've decided to use Android Studio. Since its quite new there aren't many tutorials for it, whereas Eclipse + ADT has heaps of tutorials. I was wondering if I could use the thenewboston's tutorials (which were designed for eclipse) on Android Studio and still get the same results? Both the layouts look similar and they both use java so will there be any problems?
You can use the same code. For example how declare and use a textview in eclipse and androidstudio is the same, or how use button events is the same.
The difference is when you create a project, dependencies, libraries, and stuff configuration, but the code instructions are the same because use java.
If you are looking for a tutorial which is IDE oriented, Eclipse tutorials won't help much with Android Studio.
Android Studio is based on IntelliJ IDEA platform and IDEA tutorials may help you with configuring projects and other editor related configurations. And most importantly Android Studio won't provide support for the traditional Ant based projects since it uses Gradle build system. Of-course you can open and build Ant based projects which are created using IntelliJ IDEA but you cannot create new Ant projects in Android Studio.
If you are just looking for an alternative to Eclipse+ADT, my suggestion is to start with IntelliJ IDEA community edition first and then slowly migrate to Android Studio + Gradle. JetBrains website provides plenty of IDEA tutorials to start with.
hope this helps.
Related
I'm new to android. I had this issue Unable to write jarlist cache file while creating android project then I just hit F5 on both appcompat_V7 and HelloWorld folders to get rid of it. But still the helloWolrd project is bugging. I just followed this tutorial http://www.tutorialspoint.com/android/android_hello_world_example.htm
I did not do anything but following the tutorial (IDE settings and Hello world projct) What's going on ?Could you help me fix the issue ? Below is a picture of what Eclipse looks like afet hitting F5 on on both appcompat_V7 and HelloWorld folders
Google dropped support for Eclipse Android Developer Tools back in June 2015 so you might find inconsistencies with that IDE.
The Android developers blog is quite clear as to why:
To that end and to focus all of our efforts on making Android Studio better and faster, we are ending development and official support for the Android Developer Tools (ADT) in Eclipse at the end of the year. This specifically includes the Eclipse ADT plugin and Android Ant build system.
The official blog post can be found here.
I believe that continuing to develop in Eclipse will result in further errors the more you will progress.
My suggestion is to start your development using the official Android Studio IDE which you can find here.
All the people that I work with use Eclipse for creating android apps. However, I recently found out that Android is no longer supporting Eclipse and they are moving to Android Studio. All that apps that I am working on have been complied and created with Eclipse.
I'm thinking if the code and the programming language is the same, then the compiler or the IDE shouldn't matter. Would we be able to still work together and share code if I switched to Android Studio and they stayed in Eclipse? What are some of the potential problems?
No, the two IDEs use different project structures, but Android Studio has a very nice wizard that allows you to move your Eclipse project to AS. I really recommend you and your team to move to AS.
As already stated, everybody would have to make the switch to Android Studio at the same time, and you would need to make some changes to the build system.
Until everyone makes the switch, you should just use the Eclipse/ADT bundle.
You can technically keep the same old folder structure for source files when porting a project to Android Studio (we tried it, it works), but the different build system is the main change that throws a wrench into the works.
Eclipse uses the ANT build system for Android projects.
Android Studio uses the Gradle build system.
We are in the process of planning a switch at my work, and everybody will need to switch at the same time, and the build system will have to be ported from ANT over to Gradle.
See more about Gradle: http://tools.android.com/tech-docs/new-build-system/user-guide
Migrating old projects to Android Studio: http://developer.android.com/sdk/installing/migrate.html
*edited for clarity regarding folder structure
I have used Eclipse in the past for different projects, most lately OpenOffice plugin development. I want to start developing apps for devices running Android, so I downloaded the Android Developer Studio (ADS). I see that it's obviously an independent distribution of Eclipse, and that's OK, but I would prefer to use only one Eclipse to write all my Java, etc. applications.
What are the preferred use guidelines to only use either one of the IDEs for both Android development and other Java development?
You can download the Android SDK and plug it into your existing version of Eclipse. Before Android Development Studio I did this and it worked fine.
http://developer.android.com/sdk/installing/installing-adt.html
And here is a good tutorial for setting up Android SDK on an existing Eclipse:
http://www.ryanchapin.com/fv-b-4-740/Setting-Up-Android-SDK-and-Plugin-in-an-Existing-Install-of-Eclipse.html
If you are new to Android and want to start Android Development I suggest that you use Android Studio. It is an IDE that is based on IntelliJ IDEA. You can either download the Android Studio IDE or download the IntelliJ IDEA and use the Android Plugin.
Eclipse is not recommended any more because Android Studio is the new offical IDE.
You want to develop Java and Android using one IDE. So I recommend that you use the IntelliJ IDEA with the Android Plugin.
It is also useful to read the FAQ of JetBrains about Android Studio.
I am using eclipse with adt to developing android apps
I want to use 47deg Android Swipe Listview library in my app
Is this library created just for Android Studio IDE And is there any way to use this in eclipse?
(Because it has some files in it like build.gradle and ...)
From my own experience, there is no easy way to do that. the project meta-data is significantly different so eclipse and Android Studio are not compatible in that respect.
I created a new project in Eclipse and added the source files manually. alternatively - I found instructions on how to open an older version of the project in eclipse here- https://github.com/47deg/android-swipelistview/wiki (which I intend to try tomorrow).
Good luck!
Can we use Android studio for AOSP(Android Open Source Project) development, is there a way to do it. I didnt find one. anybody got any idea on this please ?
You can use Android Studio as a IDE for AOSP, since it's just a modified version of InteliJ's IDE.
from AOSP root:
make idegen && development/tools/idegen/idegen.sh
Then just "Open Project" in Android Studio and select the android.ipr it generated.
To import AOSP source in Android Studio or Eclipse, follow the full instructions here :
https://android.googlesource.com/platform/development/+/master/tools/idegen/README
What Pedlar suggested above is one way of doing it. I ran into lot of Jar dependency issues when I tried it with IDEA community edition (Android Studio is a fork of IDEA IDE). The IDE keeps prompting you about duplicate jars etc. The generated project includes framework Java sources as well as App sources. I tried to build an App project which resulted in broken AOSP build. IMHO, IDEA is a great IDE for Java development. But didn't work well with AOSP.
What worked for me is using eclipse to browse/edit/debug framework sources, but build the code from a terminal window. To avoid AOSP build breaks, please create a shadow dir of AOSP (i.e. lndir of AOSP) and use shadow dir for eclipse project.
This is explained at Using eclipse to browse/edit AOSP link in step by step.
If you are working on AOSP, you might want to check Debugging Android framework services.