Tuesday 19 January 2016

Why Android Studio sucks over Eclipse ADT.



I am a seasoned developer in eclipse adt and recently switched to Android Studio . I should say eclipse is definitely better that AS! True eclipse crashes but so does AS and even more! Eclipse knows how a Java developer thinks and thus is very very intuitive. AS crashes blatantly throwing NPEs which is embarassing! As of now AS is definitely overhyped. I am sure intellij has done some evil deals with google to push its IDE. People who are voting for AS have definitely not worked in eclipse for long. This debate is becoming more of 'who knows what' rather than 'which is actually better'. This I am writing when I am in the middle of my work and AS wouldnt start after an update.
Somehow all bugs of AS are let go simply saying 'AS is new' , this is not logical.

Going ahead I'll be updating a series of my personal observations to compare both IDE's . let the facts speak for themselves rather than opinions.

1. Android studio freezes the whole screen after a manual update trigger . Now I have to see this screen while leaving my work, untill this is finished.  Eclipse provides an option 'Run in Background' for such situations.





2. After three failed attmepts and numerous Null Pointer Exceptions! It updated to newer version. costing me 30 mins. But 'its ok since Android Studio is new'.  .

3. Try  this..

- Open a project 1 in Android Studio
- Open poject 2 from inside project project1 : (File -New Project)
- The new project is opening.
- Obviously you want to close the first project as you no longer need it, so close. Both the workspaces crashes...but its ok..Android studio is new , its learning.

4, Opened my existing project today on Android Studio , was greeted by this error , repeatedly.



5 Cannot share project to github from Android Studio . Learn how eclipse does it. . 

6. Loading time: Based on my observation Android studio takes more than 3 times ( yes 3 times!) than that of eclipse to load a blank project.

7. Scenario: Was adding google play services library in project. edited the build to include the library.. It asks for a sync. I clicked on sync project. Fails to sync , says gradle version not good, use default gradle. I switch to default . Hangs complete nicluding my laptops mouse and OS for 5 minutes and then says the sync failed. Here is the log. BUT ITS OK AS Is NEW GIVE IT SOME TIME!!



error log:

Indexable files iterated in 325 ms
2016-03-21 13:08:05,860 [3222556]   INFO - .project.GradleProjectResolver - Gradle project resolve error
org.gradle.tooling.BuildException: Could not run build action using Gradle installation 'E:\INSTALLED_SOFTWARES\android_studio\gradle\gradle-2.8'.
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:57)
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

8.


Whom are you trying to fool??

9. If you have same libraries multiple times in your project. Say you have a google sdk, facebook sdk and your module and all three uses android-support AS fails to build, giving the below mentioned error. It expects you to remove all the duplicate libraries on our own and then rebuild, whereas eclipse says "I found multiple versions of the same library, I am using the latest one of all" , and moves ahead.

Android Studio: 



Eclipse for same project: