Does Android SDK (Android Development Tools ) alter the Java SDK? - java

I want to develop a Windows application using Java SDK and eclipse, also I want to develop an Android app while using the same PC and eclipse. Is it possible to do both as I`m not sure if I set up eclipse and install the Android Development Tools (ADT) will I still be able to develop the Windows application at the same time???

No - all ADT does is use the existing JDK environment :)

You can just download the Android Development Tools from the Android website.
The Android Development Tools is nothing more than Eclipse modified with the ADT Plug in preinstalled.
In it, you have the option to create both Android projects and plain old Java projects.
So, downloading the Android Development Tools alone will give you everything you need.
If you already had Eclipse set up, installing the ADT yourself into it will not take away any functionality from Eclipse, it will just add ADT functionality on top of it.

No, it does not alter it.
You will have the Android SDKs on their own folders and has nothing to do with JDK.

Related

Can I access the Android SDK manager gui with IntelliJ?

I just set up the android sdk with home-brew on my MacBook Pro. The android sdk is stored in usr/local/share/android-sdk . Because I also do Java development, I want to just use IntelliJ instead of downloading Android Studio also. According to this, only Android Studio comes with the sdk manager gui; for other IDEs, I have to use the command-line tools. However, I figured Android Studio is a fork of IntelliJ so IntelliJ should also have the gui. I tried clicking "SDK Manager" in Intellij (Tools > Android > SDK Manager) but nothing happened.
Is anyone able to access the sdk gui with just IntelliJ? Can you please advise me on how to do it?
The new Android SDKs aren't bundling the SDK manager application anymore (which is what Intellij 2017.1.X and earlier attempt to launch when you go to manage the SDK). The GUI to manage the SDK is now built into the IDE via the Android Plugin (which Google writes). Intellij I am told will be getting this in the 2017.2 release. That should be in EAP now but I have not tried it.

Can't find Android SDK for Eclipse with ADT plugin

I really need to setup Android development with eclipse (ADT plugin) just after format my laptop...
I know everywhere suggest to migrate to Android Studio but really NOT want to do it until next release may be next month.
It always brings to THIS PAGE and forcing to install android studio which is NOT what I am looking for at the moment.
Also I find this LINK that provides ADT plugin installation guide but after successfully install ADT plugin it's not downloading and install SDK as earlier....
Would be grateful if anyone can guide me just to set up eclipse for Android development until migrate to Android Studio in a convenient time. Thanks
I don't have first-hand experience with this, but if your ADT plugin cannot install Android SDK anymore, you can try a workaround: install AndroidStudio, let it install the SDK, and let ADT look at the same directory. I did this a number of times in the opposite direction (starting with working Eclipse/ADT, and reusing same SDK from AS).
I did the same as you, I downloaded a "stand alone" version of ADT and dowloaded every Android version that I wanted to work with.
I downloaded Eclipse Mars, opened it, then I went in the Market Place (in Tools if I remember correctly) and looked for "Android". I then downloaded the ADT (Android Developer Tool) which you can also find on this page : http://marketplace.eclipse.org/content/android-development-tools-eclipse
to clarify, the problem is ADT doesnt install the sdk folder anymore, and also, doesnt support any of the sdk manager above their last version... you can try to look up a sdk manager version that suits ADT, but good look with that. The only way to use eclipse with android sdk is to copy another eclipse well configured with de sdk manager folder, from another pc

Can I develop Android apps without an IDE?

Is it possible to develop Android apps using only the Android SDK, without any IDE like Android Studio?
Yes, see the Google SDK documentation.
However, with the current toolchain and documentation it'll be an uphill struggle. I'm trying to do this too (for a dev who lives in Vim and Unix tools, Android Studio is needlessly slow and bloated).
The main issues I've found so far:
The SDK documentation gives instructions to create an Ant-driven project, but the SDK is now geared towards using Gradle. If you're working through the Google documentation in a linear fashion, you'll find subsequent lessons have you issue Gradle build instructions. For your Ant-built project.
There is very little documentation on how to actually create a Gradle-built project from the command line. The command line I use is:
android create project --target android-22 --name MyProjectName --path my_project/ --activity MyProject --package com.example.android.myproject --gradle --gradle-version 1.2.2
The --gradle-version actually refers to the Gradle Android plugin version, not the version of Gradle itself. Finding this out wasn't easy.
Even if you get it to create a project properly, it probably won't build without further manipulation. One of the generated files (project/build.gradle) has an invalid directive name (runProguard - I'm guessing it's now deprecated). That must be changed to minifyEnabled before the project will build. And using the Gradle plugin 1.2.2, the file project/gradle/wrapper/gradle-wrapper.properties has the Gradle distribution incorrectly listed as gradle-1.2.2-all.zip. This should be gradle-2.2.1-all.zip.
These are files generated by the SDK with errors.
The documentation is focussed on IDE-based development. Once you get past the initial few pages on creating and managing a project using the command line, it's very IDE-focussed.
Instructions on things like changing an app Theme are difficult or impossible to follow as they omit steps that the IDE performs for you.
In general, fully IDE-less development for Android (at least in Java, using the official SDK) is very painful. And my personal opinion is that IDE-based development is equally painful (slow, bloated, ugly on high-DPI screens under Linux and evidently full of magic that's a pain to replicate on the command line).
Edit: I should add that the above refers to using SDK tools v24.2, SDK Platform-tools v22, SDK Build-tools v22.01 and Android API 22 (5.1.1).
For android the basic debugging environments are:
ADB
DDMS
Java Debugger
You can try with them.
More details are here : http://developer.android.com/tools/debugging/debugging-projects-cmdline.html
Writing an Android app on Notepad is what I do on my Windows Laptop.
First you configure your laptop as follows:
Download development Kits: Download a Java Development Kit 1.6 for Windows and an Android Development Kit . Similarly try downloading older version of Android kit GUI version of Kit Manager so that you can download essentials. Using kit Manager download Android-23 platform build tools. Android Studio may have slower performance, so try to avoid it.
Configure Kits: Set Windows PATH variable by right clicking My Computer -> Properties -> Advanced System Settings or change the appropriate settings in your Control Panel. PATH should include the Java's compiler executable
file in Java directory, and the android.bat file of Android Kit.
Download Build-Tool: (recommended, but Ant can be used too.) These
programs configure the command-line tools for easy usage for our
convenience. I downloaded version 2.2.1 as it can use old
Java & old Android.
I've also written about these instructions on my GitHub Page.
For the development of Android apps one doesn't even need a PC, and not even the Android SDK. One can develop them completely on a mobile Android device, so an emulator isn't necessary either.
For that one needs to the app Termux on the device, and the toolchain script apkbuilder, which stitches together all APK building programs that come with the Termux packages aapt, apksigner, clang, cmake, d8, ecj and unzip, including the OpenJDK.

How to develop Android apps with Java 1.6?

I have Java 1.6 on my machine and I cannot (not allowed) to install Java 1.7. I've tried Android Studio and the Eclipse Android plugin. Both require Java 1.7.
What do I need to do to develop Android apps with Java 1.6?
I know in Android Studio you can set the Java SDK in file -> project settings -> project - > edit under Project SDK
Not sure if you need to download a different Android SDK to fit the Java version, but you can start there if you haven't already.
In Eclipse, just open Window/Preferences:
and choose your favourite Java version.

RegisterActivity: cannot be resolved to a type, AppEngine

I have set up my computer with windows 8.1 completely new (formatted), to be sure to have a working system.
I have installed Eclipse and the plugins the following way:
download and unpack eclipse Kepler
install JDK
install android SDK
install android SDK-plugins in eclipse
in android sdk: install all extras, API 19, in tools: Android SDK Tools, Android SDK-Platform Tools, Android SDK Build Tools (only newest, 19.0.3)
install all google plugins for kepler(Google App Engine Tools for Android, Google Plugin for eclipse, GWT Designer for GPE, SDKs)
Now, is everything set up correctly, to use google app engine correctly?
When I create a new app engine connected android project, google creates a bugged project.
I have 50 errors, of which 49 can be resolved by changing the Java version from 1.4 to 1.7 in the app engine project (Properties: Java Compiler and Project Facet)
However in the non-appengine project, in the MainActivity I get following error:
RegisterActivity cannot be resolved to a type.
How to solve this? I did not do anything by myself yet, I only created a project and I already have an error...
You are very thorough, which is good. Your development installation appears to have flaws, and you might be trying to make it run before you have seen it walk. You need to divide and conquer the potential problems. Initially simplify what you aim to create.
To pinpoint the errors, try the two standard tutorials before starting on your own design: first build and deploy an AppEngine project without Android components, and only after that works, build and deploy an Android to AppEngine project. Somewhere along that process your errors will show up, and then you should have a more specific piece of source code to show and discuss in this question.
Yesterday, a new version of Android SDK (22.6.2) was released. Apparently, the problem with RegisterActivity was solved in this update. Now I can create an Appengine connected Android Project without any errors!

Categories