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!
Related
I prefer eclipse over android studio, my question is if I can still use it to build projects for future development - for example the recycleview library. It is supported in eclipse too, but will future google libraries continue to support it?
My second question is, if I'm using eclipse to make an app, will it be run on new devices too, as the project structure is different in eclipse and android studio.
My final question is how can I use libraries from android arsenal if I don't use android studio (all the libraries there are for maven and gradle)?
I prefer eclipse over android studio, my question is if I can still use it to build projects for future development - for example the recycleview library. It is supported in eclipse too, but will future google libraries continue to support it?
In the end, it is all just Java, XML, and other such resources. The RecyclerView library is no exception- it is just a library that can be used in any IDE.
The IDE you use for development is just a tool to view and edit these project files. Separately, you use a build system to build the application. Your IDE, the build system, and the project files are completely separate and one doesn't depend on the other to create a functioning application. In fact, you can build an Android application without an IDE at all.
The biggest issue you might run into here is the format of libraries such as RecyclerView. In the Eclipse days (note that Eclipse Android projects typically use Ant for building), most libraries came as either JAR files or Android libraries (of source code). With the release of Android Studio and the Android Gradle plugin, everything is shifting towards Gradle dependencies.
Also be aware that Google is not going to continue supporting Eclipse development. The tools for building Android application in Eclipse will not continue to receive updates, so bugs may pop up in the future that prevent you from continuing to use it effectively.
My second question is, if I'm using eclipse to make an app, will it be run on new devices too, as the project structure is different in eclipse and android studio.
The output of building an Android application is the same regardless of how or where you build it - you get an APK with the same file structure. The structure of the built APK is independent of the structure of the source code.
My final question is how can I use libraries from android arsenal if I don't use android studio (all the libraries there are for maven and gradle)?
Eclipse can use both Gradle and Maven for building. If you want to use libraries as Gradle or Maven dependencies, you will need to set up your project to use either Maven or Gradle to build instead of Ant. Otherwise you can still find JARs for most projects that don't rely on the Android framework, or you will need to get the source code for the library and set it up as a project dependency yourself.
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 installed latest JDK and ADT bundle package (I'm working under Windows 7, 32 bits OS)
I installed all the possibly needed packages in ADT Manager.
I defined ADT location in Eclipse->Window->Preferences->Android
But I still have no option to start File->New->Project->Android->Android Project or
File->New->Other->Android Project
I have many other options like:
Android Activity
Android Application Project
Android Icon Set
Android Object
Android Project from Existing Code
Android Sample Project
Android test Project
etc..
But all these are not what I need.
I already looked on existing questions here like No Android project type in Eclipse->File->New-Project and others and also on several similar questions on other forums but still did not found an answer for my problem.
You have Android Application Project. What exactly do you think Android Project is? You are trying to create an applicaiton, correct? Then Android Application Project is what you want.
There is no "Android Project" option. In fact, I've never seen it. Basically, you have the following:
Android Activity - you just want to create an activity
Android Application Project - This creates a complete android application project to create an application that you can install and launch on an android device.
Android Project from Existing Code - import existing code into an Android Project
There are many more as you found out. But, most of the time, you would use Android Application Project.
You don't really specify what it is you are looking at creating specifically, so I'm going to assume this is what you want.
If you could give more information as to exactly what you think "Android Project" is for and what you are trying to accomplish with it, that would help.
Per the ADT tutorial site, they have the instructions on creating an Android Project, which is generic. There are numerous types of Android Project, with the Android Application Project being one of them. Not sure if this is where you are getting the name "Android Project" from or not. Here is the link: http://developer.android.com/training/basics/firstapp/creating-project.html
Everything you state at this point shows you have installed ADT correctly and it's integrated properly with Eclipse.
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.
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.