Android Programming: Android Studio vs. ADT Bundle? - java

I'm about to start on "The Big Nerd Ranch Guide to Android Programming". It says to download ADT 21.1 or a version higher than that but literally all I can find is the Android Studio. How much of a difference will that make for me? If you're not familiar with the book its basically a step by step instruction guide on what to do, so I was wondering if getting Android Studio would conflict with that or not. Also I'd be forever in your debt if you could find me a link to ADT 21.1 to put my worries aside. Thanks!

How much of a difference will that make for me?
In terms of the book, most of the instructions that are tied to the IDE will be different. The code is the same, the apps you get from the code is the same, but the IDE itself is fairly different.
If you are an experienced developer, with background on lots of different tools already, you're probably used to this sort of translating instructions for one IDE into another IDE.
I was wondering if getting Android Studio would conflict with that or not
Those steps that are telling you "click this, drag that" and such in the IDE will be done somewhat differently in Android Studio.
I was wondering if getting Android Studio would conflict with that or not
The ADT Bundle is no longer distributed by Google, and I'd be nervous about getting it from some random Web site.
Google does have instructions for installing the ADT plugin itself into an existing Eclipse installation. Those instructions have at least one flaw — you also need to have installed the Android SDK (sans Android Studio) first.
You might also consider just switching to a different book, one that has been published or updated more recently to include Android Studio coverage.
In the interests of full disclosure: I wrote such a book. Just sayin'. :-)

Google has officially shifted support from the Eclipse-based ADT to the IntelliJ IDEA-based Android Studio. While it is a matter of personal preference, you may find that Android Studio is more powerful due to some of its features.
There are some differences in the workflow, but they are not all that massive. Importantly, both support all Android APIs and the full feature set of Java as well as build systems such as Maven and Gradle (the latter being more integrated with IDEA).

Im going to guess that you're using the eclipse IDE for ADT.
Download the ADT Plugin zip file ADT-21.1.0.zip from http://dl.google.com/android/ADT-21.1.0.zip
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog, click Archive.
Select the downloaded ADT-21.1.0.zip file and click OK.
Enter "ADT Plugin" for the name and click OK.
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
Read and accept the license agreements, then click Finish.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
Pulled and Simplified from Update Android ADT Tool to 21.1.0 from 21.0.1.

Related

How to set eclipse for android development?

I just downloaded java JDK 8 and set the environment variables for JDK and JRE, downloaded android SDK extracted them directly to C: (there were no platform tools so I used the command line to download them) and also set the environment variables. And I downloaded eclipse oxygen and I installed new software for ADT Plugin. When I set preferences I referred to the SDK folder and hit apply but nothing seems to happen like no SDK targets are listed. Hhuhuhuhuhuhuhu T^T I have deleted everything from Java, SDK, eclipse and downloaded them all again while disabling my antivirus but that didn't fix it. I also cant open my Android SDK Manager using eclipse, like it shows that it's loading but after that nothing happens even if I wait for 10 mins nothing shows up on screen, not even the command line that seems to just flash briefly which is what most people are having problems with when I search google. Can someone please tell me what to do?? I'm mainly using eclipse for android projects in school
By the end of 2015, Google ended the development and official support for the Android Developer Tools (ADT) in Eclipse.
As stated by Google, every app development project should be migrated to Android Studio.
So you should migrate your eclipse project to android studio.

Eclipse Android Helloworld Blank

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.

Android Studio and Eclipse

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

Chilli Source Android build on windows

I've tried building the CSEmptyTemplate project in eclipse for android but have run into a host of issues with it.
Looking at the documentation, it doesn't appear as if it should be this difficult.
Firstly, I've installed cygwin and installed the devel package to get make.exe and gcc compilers. I'm also using cygwin as part of the tool chain.
However, the error I keep getting is 'make: *** No rule to make target `all'. Stop.'.
Any advice on fixing these issues would be appreciated.
edit: Found the make files. I was just an idiot last night when working on this.
There shouldn't be any additional steps required to build Chilli Source for android on windows, just the simple steps listed on the website here: http://chilli-source.chilli-works.com/docs/?page_id=67
However setting up the Android Development Tools with the NDK can be a bit of a pain. Judging by the error your getting my gut feeling is that something isn't set up correctly there.
Chilli Source requires the latest versions of the SDK, NDK and ADT. Can you ensure you have:
Android API level 21.
The latest versions of the Built Tools, Platform Build Tools and Google Play Services.
NDK revision 10c.
The latest ADT is also missing a couple of things that means it can't be used out of the box.
It doesn't come with the native dev tools which can be acquired by doing the following:
Go to "Help" then "Install New Software..."
Select "Android Developer Tools Update Site - https://dl.google.com/android/eclipse". You make have to edit it to instead point to https://dl-ssl.google.com/android/eclipse
In Developer Tools select and install Android Native Development Tools.
It also doesn't come with ant. This isn't causing your issue, but it will cause issues later on, so get it following these steps:
Go to "Help" then "Install New Software..."
Select "Juno - http://download.eclipse.org/releases/juno"
In General Purpose Tools select and install Eclipse Plug-in Development Environment.
Now that you've got everything required, ensure that you've got it set up correctly:
The correct version of the SDK selected the Android tab in preferences.
The correct version of the NDK selected in the Android/NDK tab in preferences.
Android 5.0 selected in the Android tab in Project Properties.
Finally, on windows you also need Cygwin. It's been a while since I've used it (I'm not a fan of cygwin so I do my Android development in a Ubuntu virtual machine) but only the "devel" package is needed iirc, so make sure you've at least got that.
Hopefully ensuring all of that is set up correctly will fix your problem!

Installing java on Eclipse C/C++ Developers IDE (Kepler)?

I already have Eclipse Installed for C/C++ Prgorams. I have the Kepler Service Release 1.
I am planning to learn Android App Development so I need java, so is there a way to install java on this version? I don't want to do it manually like going on the website and downloading another eclipser. Is there a plugin for java?
If so can someone guide me through?
Well it should be same as installing a plugin. So go to install new software menu.
Then select the eclipse update site http://download.eclipse.org/releases/kepler and in the programming languages section select java development tools. You can also search it using the search bar.
The thing that I know You can update it on your current eclipse. Go to help on eclipse and click updates
http://download.eclipse.org/eclipse/updates
But there is a painful problem with update it. If I were you I would either use netbeans or re-install eclipse. Either one is going to be a easier solution than update.
Like the previous answeres say, you should be able to update it. But I made the experience that updating something to eclipse can be really tricky. You will also need the Android stuff. You can download eclipse with the Android SDK here: http://developer.android.com/sdk/index.html?utm_source=weibolife

Categories

Resources