Eclipse , ADT , SDK , JDK - java

I tried to use the new android L theme , therefore I updated the sdk, and then I came with an error that my ADT isn't matching to the SDK , tried to update but I got an error, so now im without Eclipse, without ADT , without SDK and without JDK, trying to install the ADT 23 bundle and its seems not to work.. Can someone guide me how to install the Eclipse? I don't know what to install first, what after, and I don't know how to download the files also.. I got Windows 7, 64 BIT..
I read about it a little bit trying to fix it.. someone said to me the problem is in the new sdk update, so I downloaded the old one :
android-sdk_r22.6.2-windows...
how can I install it with Eclipse and Jdk? ty

Aor android L or android 5.0, you need JDK 7 or higher
Steps for updating Eclipse:
Download Eclipse from the official site
Download and install JDK latest version
After installing the eclipse, go to Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the
Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
9.Read and accept the license agreements, then click Finish.
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.

Related

JDK directory is not set or invalid (unity)?

I am now creating a keystore for my game (in unity) but when I press the add key button, an error pops up
Java Development Kit (JDK) directory is not set or invalid. Please, fix it in Preferences -> External Tools
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
I installed the JDK and checked the path of it in the terminal using the command /usr/libexec/java_home, then it shows me that the path of the JDK is /Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home.
I copy and paste it in the JDK path in unity but the error still pops up.
I actually checked the JavaVirtualMachines in my computer's library but there's nothing in it.
How can I solve this problem? Any help is greatly appreciated.
Actually I solve this problem by adding the modules (Android SDK & NDK Tools, OpenJDK) to my Unity Editor. Actually if you tick the Android build support module, it won't automatically help you to tick the two modules above.
This solved for me in Linux (don't know if the case happens in Windows)
chmod -R 777 ~/Unity
This command set all privileges for all files/directories/subdirectories for the user.
Getting the error of this topic, for curiosity I tried to run the "java" executable inside the directory
~/Unity/Hub/Editor/2021.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK/bin/
And got:
bash: ./java: Permission Denied
This explains why set the privileges.
I had the same problem, another solution doesn't work for me!!
I just uninstalled and then installed back using the unity HUB and it's worked.
Click on the three dots and uninstall
then click on add to install back the desired module.
While installing don't forget to check android build support and its all subcategories.
Also, I think I had installed more than one version of unity, that could also be a problem.
Check your Unity installation path in my case
C:\Program Files\Unity\Hub\Editor\2019.4.13f1\Editor\Data\PlaybackEngines\AndroidPlayer
this AndroidPlayer folder in NDK, SDK, and OpenJDK these folders are important for APK file generation.
These files are not properly installed then these files copy for another unity version.
enter image description here
Only one version you have then re-download it.
Edit the environment variable like this path in your case path was different but make sour bin folder is important.
C:\Program Files\Unity\Hub\Editor\2019.4.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin
enter image description here
Solve the problem.
I solve the problem by changing the paths inside:
edit->preferences->external tools
To point to the correct version as I download a different version for the SDK, NDK and JDK when using the hub. This can be done by ticking the checkboxes.
As #Jelly Qwerty answered, installing android platform alone won't install jdk, sdk and ndk. What you got to do is:
Open Unity Hub
Go to "Installs"
Click on the 3 dots on the upper right corner of your unity installation and select "Add Modules" Unity Hub Settings 1
Expand "Android Build Support" and check "Android SDK & NDK Tools" and "OpenJDK". Unity Hub Settings 2
Once the tools are installed you should be able to build your apk.
Cheers
I unchecked and checked the box for "JDK installed with untity" in Preferences>Externals Tools.
A window popped up and it installed some files and it fixed my issue
In Unity hub navigate to your unity versions, in the desire version click the doted menu and select add modules, if you already have android support, it has other options to install the android skd, ndk, and open ndk
There is no 3 dots and there is no installing JDK, Gradle, SDK, or NDK.
I always get Gradle building errors when I install these components manually, although they are the compatible ones of my version.
I want to download them automatically by unity, but the options you are talking about don't exist.
enter image description here

This Android SDK requires Android Developer Toolkit -887826. Please update ADT to the latest version

When I click check for updates it goes through many Google URL and says no updates available. So I did some Google and later on checked for install new software.
This also don't work it says the dependencies are already installed. and I have later on installed all the build tools.. It is not detecting my SDK saying to please update? Help! Please!
This problem occurred when I updated SDK tools!
and yeah tried Https and Http too no use!
Don't update ADT to the latest version instead downgrade the SDK to 22.6.2.
The new version(rev 23) is full of bugs. I we solve 1 problem the another problem generates, I faced the same problem and this is how I did it.
Google project manager recomments to use old SDK 22.6.2 until the problem is fixed.
Please wait for an updated version within a day or two. Until then, your workaround is to do download one of:
http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz
http://dl.google.com/android/android-sdk_r22.6.2-windows.zip
http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip
and copy over the following files:
tools/hprof-conv
tools/support/annotations.jar
tools/proguard
So, after extracting the zip file you downloaded , paste(overwrite) its contents in the SDK to where it is installed. Then start eclipse it will work normally !
Solution is: First Update ADT to 23.0 and then Update SDK Tool to 23.0
You have updated the android sdk but not updated the adt to match with it.
You can update the adt from here
You might need to update the software source for your adt update
Go to eclipse > help > Check for updates.
It should list the latest update of adt. If it is not working try this
go to eclipse > help > Install new software
Click on add
add this url : https://dl-ssl.google.com/android/eclipse/
give it any name.
It will list the updates available- which should ideally be adt 20.xx
Eclipse will restart and hopefully everything should work fine for you.

Eclipse 4.2.1 Error installing Google plug in 4.2

i am new to the eclipse and i am trying to install the google plug in for eclipse and i get the following :
Cannot complete the install because one or more required items could not be found.
Software being installed: Google Plugin for Eclipse 4.2 3.2.0.v201302131858-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group 3.2.0.v201302131858-rel-r42)
Missing requirement: Google Plugin for Eclipse 4.2 3.2.0.v201302131858-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group 3.2.0.v201302131858-rel-r42) requires 'org.eclipse.wst.css.core 0.0.0' but it could not be found
Use Eclipse Java EE, not Eclipse SDK..
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/junosr2
Taken from this page http://www.shekhargovindarajan.com/tips-n-tricks/solved-requires-bundle-org-eclipse-wst-xml-core-error-while-installing-google-plugin-in-fedora-eclipse/
Launch Eclipse. Click on Help>Install New Software. On the subsequent window titled “Available Software”, click on blue link ‘Available Software Sites’. Look for the URL http://download.eclipse.org/releases/galileo in the list of Software Sites. Select and click on Enable (button on the right). Click on OK.
Back on the “Available Software” window, type the URL http://dl.google.com/eclipse/plugin/3.5 in the field labeled “Work with:” . Click on Add. This will show Plugin and SDKs in the bottom pane. Check the boxes against them and click on Next. Follow the onscreen instructions. This will install the Google plugin and SDK. When prompted, restart Eclipse.
You may obviously need to update the links to be 4.2 instead of 3.5 and juno instead of galileo.
As Kevin Fritz said, use preferably the Eclipse Java EE package. If you don't want to install Eclipse from scratch, you can also install the needed plugins from the Juno update site or the WTP update site. Install the WTP packages. Just ask if you don't know how to proceed.

Eclipse is saying "Update Android Developer Toolkit"

I've somehow managed to mess up my Eclipse and Android set-up and I'm not sure how to fix it. The symptoms of the problem are as follows:
In Preferences > Android, I try to select the location of android-sdk-linux, when select the error appears "This Android SDK requires Android Developer Toolkit version 20.0.0 or above. Current version is 18.0.0.v201203301601-306762. Please update ADT to the latest version."
Going to Help > Check for Updates in Eclipse, returns no updates found
Going to Help > Install new software and selecting work with ADT Plugin - https://dl-ssl.google.com/android/eclipse/. Selecting Developer Tools and next, returns
Cannot complete the request. See the error log for details.
"Android DDMS" will be ignored because it is already installed.
"Android Development Tools" will be ignored because it is already installed.
"Android Hierarchy Viewer" will be ignored because it is already installed.
"Android Traceview" will be ignored because it is already installed.
"Tracer for OpenGL ES" will be ignored because it is already installed.
If I then take a look at what is already install, Android Development Tools is listed and the version is 20.0.0.v201206242043-391819
Now for the interesting part:
If I go to Help > About > Installation Details > Features is lists Android Development Toolkit as Version: 20.0.0.v201206242043-391819 but if I then go into Plug-ins it lists Android Development Toolkit as Version: 18.0.0...
Sorry for yet another question on updating the ADT as there already seem to be quite a lot of questions on the topic but I've tried the typically solutions and they does seem to be getting me very far
Some extra info, that people often ask for
OS: Ubuntu 12.04 LTS
Eclipse Platform: Version 3.7.2
In your installed folder of eclipse there is a folder named plugins.
Do the following:
Find the plugin file/folder of Andriod SDK and move it to some other folder for backup.
Download from Android site the latest version of Android SDK
Copy/paste it in your plugins folder
Restart eclipse
And everything should be fine.
Try using http://dl-ssl.google.com/android/eclipse/ instead of https://dl-ssl.google.com/android/eclipse/
In the end, I just couldn't fix it so I complete uninstalled it and set it back up again from scratch, thanks for your help
Run software updates in Eclipse (Help > Check for Updates) and update the ADT.
I know I'm late to the game on this one, but I figured I would contribute since I ran into the same problem myself. In order to check for installed plugins in Eclipse, do the following.
From the Eclipse Preferences Menu..
-Select "Install/Update"
-From the General Menu, There should be a link button that says "Uninstall or Update"
This should take you to a prompt that will allow you to uninstall anything you've added onto your Eclipse setup!
Go to the below site
https://developer.android.com/sdk/installing/installing-adt.html
and download ADT-22.3.0.zip from the site.
then follow the procedures mentioned there..
uncheck "Contact all update sites during install to find required software"
see: Can not install Android ADT 21.1 on eclipse Juno (Windows 7) after upadate to SDK 21.1
After updating the Android SDK Tools to the latest version from the SDK manager, do the following:
Go to Eclipse->Help->Install new software
Type https://dl-ssl.google.com/android/eclipse/ in the "Work with" Text box
From the list, select all and then click next
Now Eclipse will prompt you that in order to install these new software, Eclipse will uninstall the old version (in this case Android Developer Tools), click on next, read and accept the license and wait for it to download
Restart Eclipse and everything should be working fine.

Unable to install Android SDK

I had a Windows XP. I also had JDK6. I downloaded "Android installer r11" for windows. When I click the installer, the error message is displayed as alert Java SE development kit is not found, Then the installation cannot happen.
But in my system I had a Java SE 6. I cannot find why it is not take the Java.
Try this step it may help you:
Installation sequence: JDK, Eclipse, ADT, Android SDK
1. JDK
First, head over to Oracle Web site to download and install the latest Java Development Kit.
Ensure that the environment variables look something like this:
CLASSPATH
C:\Program Files\Java\jdk1.6.0_10\lib;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;
C:\Program Files\Java\jdk1.6.0_10\lib\dt.jar;
PATH:
C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\Java\jdk1.6.0_10\jre\bin;
At the command prompt type java-version to view the current system has been installed Java version.
2. Eclipse IDE
Next, from the Eclipse Web site Download the latest Java Eclipse Classic as our development environment, select here eclipse-jee-helios-SR1-win32 version, download the Eclipse is not good need to install, unzip to the right place to use.
3. ADT (Android Development Tools plugin, Android Development Kit)
ADT is an Eclipse plug-in, due to the use of the Eclipse version, the installation process referred to in the following menus and options may vary.
Then, start Eclipse, choose Help-> Install New Software ..., pop-up "Install" dialog box.
Click the Add ... button, pop-up "Add Site" dialog box:
Enter the Android update site here: Location: http://dl-ssl.google.com/android/eclipse// When you're finished, click "OK", back to "Install" dialog box.
In the "Install" dialog box, select just added the update site, waiting to find the appropriate version of Eclipse Select ... "Develpoer Tools" of all items, all the way to click "Next", accept the agreement, click "Install" start the installation.
After the installation is complete, restart Eclipse.
4. Android SDK
Next, from the Google website download the latest android-sdk. Extract the zip file to appropriate directory, remember the absolute path. Run the SDK Manager installation.
In Eclipse, select Windows -> Preference -> Android, enter the directory on the step down the path, click "OK".
The latest SDK, only tools, but no longer contains the platform or the Google add-on, we need to use the "Android SDK and AVD Manager" to install and update, such as platforms, tools, add-ons, and documentation of these SDK components.
%JAVA_HOME% should be in your path. Half of the time you can have an SDK and be missing that variable.
Get thee to a command line and type echo %JAVA_HOME%, or simply see if you get any output from javac -version. The exact variable for Java home is probably not quite right, but the second step should work. If javac fails you, you either never installed Java SDK (aka JDK) and instead got the SE, or you still haven't set the java binary folder into your path. Use your Windows search and look for javac.exe.
If nothing else works, go to java.sun.com and re-download and install a new SDK. The annoying part is that Glassfish and other things tend to complicate the java setup because they too must be set up during install or shortly thereafter.

Categories

Resources