android sdk manager initializing but not opening - java

when I run android sdk manager ,a small window pops up in
eclipse : it says "initializing..SDK manager will show up shortly.
android studio : "starting sdk manager"
but nothing happens afterwards.
till now i have tried following solutions with no luck:
->changing android.bat to proper java/jre directory with/without quotes.
-> running as administrator
-> deleting the .android folder in c:users.
-> making sure that java directory is before windows/system32 directory.
all the above solutions haven't helped at all. the problem remains still the same.
i m using jdk 8. is it true that android doesn't run with jdk8 and requires jdk7?
because this leaves the setting up java7 as the last option.

Please run directly /tools/android.bat to check whether there is any error message. If you get a JDK not found error. Try the following, if not, forget it.
In general, when you set environment parameters, sdk should be in "PATH" "CLASSPATH", but one time, I have the same situation, when I ran an exe to reinstall JDK. I got an error to ask me to use JAVA_HOME if JDK already installed.
So add the JDK path in JAVA_HOME to have a try.

Related

IntelliJ Will Not Launch After Update

Windows also cannot uninstall it, so that I can reinstall it. I have not used intellij for almost a year. I updated Intellij the other day to start using it again. When I try to launch after the update I get this error:
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:94)
at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:519)
at com.intellij.idea.Main.bootstrap(Main.java:94)
at com.intellij.idea.Main.main(Main.java:84)
-----
Your JRE: 11.0.11+9-b1504.13 amd64 (JetBrains s.r.o.)
C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.4\jbr
According to the link the error is referencing it could be one of many things.
I would try and Delete the IDE system path (idea.system.path) as that is the easiest done from the list or I would straight up try and re-install the IDE as is suggested as that will probably take care of most of the issues existing.
I would also probably backup and delete the settings directory before re-installing (idea.config.path) and try again. It says that you can do this after re-installing as well but there could be an error in the settings directory that messes with the startup, meaning that the error could be resolved without you having to re-install.
You mentioned that you cannot uninstall or re-install which seems to be an issue with windows itself. If you are running this in an older system I think that re-installing windows might be your only solution (I used to have a similar issue with visual studio community). You could also try to mess around with the registry but if you are not sure what you are doing there I would simply re-install since it is way simpler

Some conflicts were found in the installation area, while updating android studio 3.0.1

I am getting this error while updating Android Studio 3.0.1 some patch gets downloaded and following error comes,
Some of the conflicts below do not have a solution, so the patch cannot be applied.
Showing File : jre/bin/java.exe is Absent
If anyone is still having this issue, here's what worked for me. I checked a bunch of other responses but nothing worked & I didn't want to do a clean install.
Not sure how it happened, but within my Android_Studio\jre\ was another jre version. So, I went into Android_Studio\jre\jre\bin\, copied the java.exe from there & pasted it into Android_Studio\jre\bin.
Similar solution to the other poster, but it had to come from a different directory, otherwise it'll just change from "Absent" to "modified" & continue to not work.
I had the same issue. I've just copied java.exe from jdk installed folder (e.g. D:\Program Files\Java\jdk1.8.0_144\bin\java.exe) to Android_Studio\jre\bin, and Android Studio had upgraded successfully.
Opened Android Studio again and choose update and restart option. Once the download is completed, the android studio is closed automatically and an update window appeared on the screen. At that time I opened the terminal and entered the following command:
ps -A | grep java
That command showed all the running java related processes. Now I killed those processes using the following command:
kill -9 PID
Replace PID with the corresponding process id.
I had the same error, solved in that way: I just reinstalled my current Android Studio version (without losing any settings, etc) and then tried to update again. Everything went fine after that.
The error is due to modification of java installed files. Download the latest android studio and reinstall it. The previous configuration can be restored during the reinstall over existing version.

Android Studio doesn't find Java Development Kit (JDK)

I have installed Java 8 on my computer but Android Studio doesn't find it. When I execute the installer of Android Studio I only can see an screen in which I can see an introduction and when I press "Next" another screen it's displayed in which says:
We could not detect a Java Development Kit (JDK) v7 or newer on your system. Please browse to its path if known.
So I searched my JDK and when I press the button "Next" I get the following message:
Sorry, we still could not detect a valid JDK, which we need to proceed.
If setting your JDK path manually, make sure you have browsed to a parent directory that contains a "bin\java.exe" whose version reports 1.7 or higher when you run "java.exe -version".
After that, I go to the console and execute the command "java.exe -version". It gives to me:
java version "1.8.0_60"
So I don't know why it doesn't find my JDK. I also tried adding some Environment Variables:
JAVA_HOME: C:\Program Files\Java\jre1.8.0_60\
JDK_HOME: C:\Program Files\Java\jre1.8.0_60\
But it still doesn't find it. How can I fix it?
Note: I'm using Windows 10 as OS.
Thanks in advance!
I think your JAVA_HOME variable is set to the wrong thing. Mine is:
JAVA_HOME C:\Program Files\Java\jdk1.8.0_60
I also have a PATH variable set as follows:
PATH %JAVA_HOME%\BIN
I do not have a JDK_HOME variable.
Try that and see if it works.
(I recently installed Android Studio and had the same problem, even though I had Java 7 installed. So I downloaded Java 8 and manually updated the JAVA_HOME variable.)
I had the same problem when trying to install Android Studio bundle v2.1 (143.2915827-windows) on a Windows 10 machine with a JDK at a non-standard location (the JDK on a path containing spaces). After manually selecting the path, the installer would complain that it could still not find a JDK. I solved it by manually enclosing the selected path with double quotes by typing in the editable textbox.
This drove me nuts for a couple of days. I was not able to resolve the issue through the Android studio installer, but found a workaround:
Go to http://developer.android.com/sdk/index.html
Instead of downloading "Android Studio package" (the exe file), scroll down and select "SDK tools package" (the zip file).
This work perfectly and allows you to select all the packages you want to download, including the packages installed by the installer.
What worked for me. I recieved the same error message and went to directly install the java, without closing the installation of Android studio. then tried to find the path. so I closed out the window for Android Studio and Reopened the download file and it automatically detected it. This might not work for everyone but worth a try. easier then messing with everthing else.

JavaFX on Android - Gradle can't find JDK

I'm trying to get JavaFX applications to run on Android by using the Dalvik JavaFX-Android SDK (provided by the JavaFX Android porting team). So I downloaded the samples provided by the JavaFX Android porting team and have been trying to run one of them on Android without much success.
Using Eclipse with the Gradle plugin I imported the "HelloWorldFxml" sample project. Then I ran the Gradle task "./gradlew androidInstall" on the project like the README file told me. But unfortunately the task cannot execute because Gradle cannot locate my JDK:
(source: forumbilder.se)
Even though my JAVA_HOME system variable is correctly set and I havn't had a problem with it before:
(source: forumbilder.se)
Anyone that can provide some insight as to how I can fix this?
Versions: Eclipse Luna Service Release 1a (4.4.1), Gradle 2.2, dalvik-sdk-8u40-ea3, Android SDK Build-tools 21.1.2, Android SDK Tools 24.0.2
Edit: The console output when running "gradlew androidinstall" on a sample project:
Even though the error message doesn't specify it, maybe it's looking for javac in your PATH? In case it's not in there try adding ;%JAVA_HOME%\bin to the end of your PATH variable (and restart Eclipse afterwards, I've had the problem of running processes not getting changes to environment variables before).
Check the Java setting in Eclipse:
Window -> Preferences
Java -> Installed JREs
Make sure that your JDK 1.8 is listed there. If it's not, add it using the Add... button.
Once the JDK is known to Eclipse, make sure that your project's settings use that JDK as a compiler, and the Gradle plugin should be able to pick up the setting from there.
In a pinch, you should also be able to run Gradle from the command line, and it should work fine since you already set the %JAVA_HOME% variable.
Basic Note
Since the release of dalvik-sdk-8u40-ea3, and in very short time, the JavaFXPorts team has released a few new versions, all of them simplifying all the process of porting a JavaFX application to Android or iOS.
They released dalvik-sdk-8u40-ea4 and they announced the release of a new plugin, that will simplify to the minimum the steps to create a mobile application from JavaFX.
While this answer may not help the OP in his particular problem, definitely it will help him and others, since everything is really simplified.
New approach
With this plugin, there's a new way of creating the HelloWorldFxml application for Android.
The new javafxmobile-plugin allows you to generate the apk with a single 'build.gradle' file.
You can find this an other basic samples here, and download the repository here.
You won't need to edit a single line, just type this on the command line, on the root of the sample, with your device connected:
gradlew androidInstall
As for previous releases, you will need JDK8u40 and Android SDK installed. No need for dalvik-sdk though, it's retrieved by the plugin.
Notice that you can open these samples from your IDE, so you will be able to modify them, and run them locally or build again the apk for your device.
Had this problem, too.
My proberties:
-Windows 7
-Dalvik SDK (dalvik-sdk-8u60-b5)
-JDK 8 (newest Version 8_60 / IMPORTANT: JDK not JRE)
-And I tried also the HelloAndroid project provided by the Dalvik-SDK-download.
So i execute the command line: gradlew installDebug
My probelm was nearly the same.
"Fail to find JDK. Please make sure there is a JAVA_HOME or JAVA8_HOME systemvariable."
#1
Created these proberties. Just like described in this post:
How to set java_home on Windows 7?
So to make everything sure, I created both with the same path. Cause I don't know exactly which one is used by gradle.
#2
This is really the hack that helps me out. Found this also in StackOverflow.
Write in your build.gradle under the android{..} stuff this line:
retrolambda {
jdk 'C:/Program Files/Java/jdk1.8.0_60' //<--your JDK-path
}
it looks like that
Then execute the same command line again and it worked for me.
I think only the 2. steps was the solution, cause I guess gradle don't look for the variable if there is a direct path to the jdk.

Eclipse SDK Manager Not Showing up

I'm using Windows-7 64 bit and I have installed this(jdk-7u45-windows-x64) updated JDK in my system. My SDK was updated upto API level 18(Android 4.3).
When i click on SDK manager in the eclipse, it does not start. I tried open it directly with Administrator permission also. But it does not start. I had tried to set the variable path like these.
But I'm always getting the same error like this.
After I found that in my find_java.exe get the java path from windows\system32 as shown below .
How can I set the Java path to my installed java folder.
Need some one help to figure it out. For Reference look at this link also.
SDK manager not starting
While setting the environment variable try JAVA_HOME variable pointing the bin directory.
because the android checks the java.exe in particular path.
I am new to android,As long as i studied ,Android requires Java 1.5 or 1.6. You are using 1.7
Google does not add complete jdk 1.7 support to android system requirement(some api are exception) .. It does not mean that you should not have jdk 1.7. you should also have 1.6 jdk for compiler compilance. it is a better way to avoid using 1.7 jdk ,if u dont want jdk 1.7 features.
http://developer.android.com/sdk/index.html see the system requirements and even if u developed using 1.7...when you installing your app in real device .we may face signing issue.
you may use some jar file which targetting java 1.7. but android system runtime(dalvik jvm) does not know how to process those files which means dex tool wont process those files which belongs to 1.7 and it wont create classes.dex file..hope it will help somehow
From the error you have posted it seems the problem is only with the path settings.
Add the path upto the bin folder of your jdk - C:\Program Files\Java\jdk1.7.0_45\bin and restart the eclipse.
Please verify if your SDK Location in the Window->Preferences->Android points to the correct SDK path.
Download latest android bundle from http://developer.android.com/sdk/index.html.
and replace new sdk folder with old sdk folder from android bundle folder.
now it's may work.
Finally Reinstalled my OS and Installed JDK 1.6. Then I have added my updated SDK to my ADT. It works fine now.
I've had the same issue, and this solved it

Categories

Resources