New to programming, JDK bundled with Android Studio 2.2 Preview 1? - java

I'm new to programming and wanted to give the newest Android Studio a try on OSX as I'm getting started.
I went to:
https://sites.google.com/a/android.com/tools/download/studio/canary/latest/
where it said:
Please download a full IDE image linked below to ensure you have the
correct JDK bundled with the installation.
I downloaded the file and completed the install and now get a warning in Android Studio to:
Please choose a valid JDK directory.
There is a jdk subfolder in the Package Contents of the Android Studio program itself at:
Applications/Android Studio/Contents/jre/jdk
However, this doesn't seem to be what I'm looking for. I know you can download Java from Oracle's website, but I'm not sure if this is what I should be doing or not.
At first I thought the text from the install page linked above meant that the JDK was bundled in the Android Studio 2.2 Preview 1 installer, but now I'm thinking that is not the case.
If I do need to get a JDK for my Mac, which one do I use please? Otherwise, if a JDK came with Android Studio, how do I select the valid JDK directory?
Thanks in advance.

The Android tools install the SDK for Android, but you still need a JDK. Install this one for mac osx:
jdk-8u91-macosx-x64.dmg
on page:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

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.

Android Studio Java JDK error

I want to learn to make Java Android applications in Android Studio,
I downloaded both the Java JDK and Android studio on an external drive (D:).
I'm getting this error on start-up:
tools.jar seems to be not in Studio classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
So I already searched Stackoverflow for the same error, but my Java folder seems to be a little bit different (it makes me wonder if I downloaded the correct JDK).
Because the advice was to either move tools.jar or change the value of JAVA_HOME.
None of those are an option because i can't seem to find the JDK in the Java folder. (D:\Java)
Did I install the wrong JDK?
Thanks in advance.
1) Download JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2) Android Studio -> File -> Project structure -> JDK location. Point at where you have installed it.

Android Studio no installation wizard

I have downloaded the latest Android Studio and when I run studio64.exe it opens Android Studio as a standalone application, however I would like to install it to my system.
The website says there is an installation wizard however I get taken straight to the Android Studio start screen. Is there still a way to install it on a Windows machine?
Turns out that Android Studio is now portable - like Eclipse. In other words, there is no installing, you just get the zip file, which contains everything you need, such as the executables that run Android Studio. You'll need to store this folder somewhere relevant and create a shortcut to the studio(64).exe file to run it from desktop/start menu.
The SDK is also no longer bundled with Android Studio, so that will need to be downloaded separately.
As of this post the Android Studio installation instructions by Google are out of date.
you can get the sdk manager as stand alone installer.once installed you need to run it as "administrator", than only it will be able to download and install packages and api's. follow the given below link:
http://dl.google.com/android/installer_r23.0.2-windows.exe
Check if its in compatible mode with your OS version of your machine. Right click on the downloaded bundle > Move to properties> Compatibility tab> Select Compatibility tab> Tick the check-box- Run in Compatibility mode> Select your OS version from the drop down.
You will get the set up wizard :)
Worked for me :)

How do I set my Java SDK when creating an Android project in IntelliJ?

I'm trying to get an Android project running in IntelliJ by following the JetBrain instructions here but run into an error message when trying to Select the Project Template (step #2). The error is
"Cannot Create SDK
You need to configure a Java SDK first".
I'm doing this on a mac and followed the first page of instructions before the ones linked above. In particular:
I ran the command tools/android update sdk --no-ui from the terminal after downloading only the Android SDK content. I mention this because it says to "run the SDK Manager", but I see nothing of the sort in what I've unpacked. Running the aforementioned command downloaded and installed many Android API versions and revisions.
The JDK I downloaded was jdk-7u17. I installed it; is that all I need to do?
The error for "configure a Java SDK first" comes up when I press the "New..." button in step 2. Does anyone know how I can configure my Java SDK? Is there something I missed or that is missing from the JetBrain instructions?
EDIT: Apparently, a file browser comes up after clicking OK. This confuses me further, as it accepts setting my JDK location but what I want is to view an Android project. My Android SDK is in the folder named "android-sdk-macosx", but that's not bringing up the Android options when it's selected. How do I get to the Android templates?
Have you downloaded some of the Android SDK's? Try running tools/android sdk (this opens the SDK manager) and download one of the SDK's. Then add this to your project.
Have a look at the IntelliJ documentation, which explains how to setup your SDK.
You have to setup a JDK first (see also Setting up JDK 7 for IntelliJ on the Mac), then you will be able to open your Android project.

Unable to find Android SDK location for setting preference Eclipse

To start Android Development I installed..
JDK 7
Downloaded and installed Eclipse in E:/ Drive on Windows 7
Then following the steps, installed Android ADT using Eclipse.
Everything fine till now but on trying to set preference its not accepting any folder.
On looking other suggestions online i founded that there is some setup a C:\Program Files\Android\android-sdk but no such folder in my case.
Is my android-sdk in E:/ Drive instead of C:/
I just got a folder (after ADT installation) :
E:\Software\JAVA Tools\eclipse-mobile-juno-SR2-win32-x86_64\eclipse\plugins\com.android.ide.eclipse.adt.package_21.1.0.v201302060044-569685
i can't find any 'tools' folder even (as eclipse preference requires)
Don't know what to do. Please suggest me something
Hello please follow the simple steps to install eclipse and Android SDK there is an ADT-bundle so it consists of all like
1) Eclipse where u no need to install
2) Android SDK ,
3) ADT Plugins
So u simply Click on eclipse it will load automatically all like Android SDK and ADT plugins. So please follow the link to download the adt-bundle.
Note : Before that please install JDK .
My friend, who will install ANDROID SDK? It neither comes with JDK or Eclipse. Please go through these for proper setup link1, link2

Categories

Resources