Error in installing Android Eclipse - java

hi i have installed the Java eclipse in my system according to the instructions given in http://developer.android.com. After the installation when i was to develop my new project the build target space seems to be empty. One of my friend instructed me to go to windows->Preferences->Android and in the SDK location i have entered the dir where sdk is been loaded (ie in my pc D:\Program Files\android-sdk-windows), but then also no change pls help me to clear my issue...

Check if the location you've specified have the folder hierarchy as below?
Have you also clicked on the 'Apply' or 'Ok' button to reload the location after you're done specifying the location?

It Seems like you have installed SDK but Platform packages were not installed. Go to EClipse - > Window - > Android SDK and AVD Manager, check for Installed packages if that is empty go to available packages and install as per your wish

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

Need help using IntelliJ and setting up a project SDK

When I try to run my program using IntelliJ it says I need a project SDK but when I try to set up a project SDK, it says "The Selected directory is not a valid home for this SDK"
This can happen when a java SDK is deleted, moved, or configured incorrectly.
Go into Project Structure (Ctrl+Alt+Shift+s)
On the left under Project Settings select Project
Now see the Project SDK: - it is likely red if cofigured incorrectly or it might say <No SDK>.
Firstly, just see if there is another SDK of appropriate java version in the drop down list you can use.
If not, you can use Edit button on an existing JDK to modify the JDK home path if it is wrong.
Or just press New... and JDK to set up a JDK that is already installed on your machine (e.g. C:\Program Files\Java\jdk1.8.0_72)
...if you have no JDK on your machine (be aware of the difference between a JRE and a JDK) then you'll obviously need to download and install that first

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 :)

DDMS Files Not Found Android\platform-tools\adb.exe

I have Eclipse and Java SE and am running Windows XP and am trying to setup Android for Eclipse.
I first:
Visit http://developer.android.com.
2. On the main page that appears, click the link to download the Android SDK.
3. Find a link appropriate to your operating system (Windows, Mac OS X, or Linux).
4. Click the link to begin the download.
I installed the Android SDK Tools
I then installed ADT as followed ( note I used http instead of https ) under downloading the ADT plugin.
http://developer.android.com/sdk/installing/installing-adt.html
It gave me some errors saying that somethings needed to be installed which would have been installed if i'd installed Java EE.
I saw a site that said go into the SDK Manager, so I tried installing somethind and it gave me this error:
[2012-06-28 14:32:27 - DDMS] DDMS files not found: K:\Android\platform-tools\adb.exe
[2012-06-28 14:32:27 - DDMS] DDMS files not found: K:\Android\platform-tools\adb.exe
What does this mean, and how can I get Android to work. Do I still need some thigns that Java EE has for Android?
I hate to say it, but restart Eclipse. My recent install gets confused sometimes and that's how I fix it. Hasn't failed to correct it yet.
The file path is wrong. You probably renamed a file in the directory after you installed Eclipse, and now you have to change the file path manually or re-install the program. That's why in the instructions, you are asked to install to developer on your main drive, and not some other file.
After moving eclipse to another drive I experienced this problem. Fix it by setting the SDK folder at Eclipse > Window > Preferences > Android > SDK Location:
Changing the Drive letter from C to E fixed this for me. Locate your eclipse folder on your drive and correct the path or use the browse button.
The path for me was E:\adt-bundle-windows-x86_64-20140702\sdk
Shutdown any other app that might be connecting to the phone via adb.exe eg. Visual Studio using android sdk.
Restart eclipse if needed.
install the installer from http://developer.android.com/sdk/installing/index.html?pkg=tools andriod intaller it will be all right
Set your SDK path in Preferences (Eclipse > Window > Preferences > Android > SDK Location:)

Add SDK to eclipse and no Target

I have installed android SDK in my computer successful.but when i configure the environment in eclipse.it show "No target available". Actually,i had loaded API form 1.6 to 4.0.I tried many ways to slove the question.but all is failure.now,i have no idea already.who can help me. i would thanks very much.
You need to do all of the following:
Download and install Java and Eclipse
Download and install the Android SDK
Install the Android plug-in for Eclipse (from Help, Install Software)
Configure Eclipse to point to your SDK
Create an Android virtual machine (for emulation)
Create an Android project (for your app)
Q: It sounds like maybe things are going wrong at Step 4, correct?
Q: If so, can you browse to the directory with your SDK (for example, from Eclipse can you browse to "C:\program files (x86)\android\android-sdk")?
Are you using the ADT Plugin for Eclipse? If you are you can easily configure Eclipse for Android Development. Android site says -
Select Window > Preferences... to open the Preferences panel (Mac OS
X: Eclipse > Preferences). Select Android from the left panel. You may
see a dialog asking whether you want to send usage statistics to
Google. If so, make your choice and click Proceed. You cannot continue
with this procedure until you click Proceed.
For the SDK Location in the main panel, click Browse... and locate
your downloaded SDK directory. Click Apply, then OK.
For more information you visit their configuration page - http://developer.android.com/sdk/eclipse-adt.html#configuring. Hope this helps
Ok so now did you first try out the option in the Options menu -
But if this doesn't work it means there is something wrong that is happening due to conflicts in OS. I would like to know what is your Desktop Environment? Ubuntu? Window? Mac?
I'll assume that your using a Windows environment... The best option the community has noted down is the usage of Force HTTPS resources to be downloaded via HTTP. You could also use a Proxy and get the URLs fetched.
For more information look at this thread.

Categories

Resources