I can't open Android Studio?

  • Thread starter Math10
  • Start date
  • Tags
    Android
If you want to save your project as something other than ShowLong.java, you need to specify the name of the project file when you create the project in Android Studio. To do this, select New Project from the Android Studio main menu, and then select Android Application Project. Enter the project name, application domain (for example, com.example), and project location (for example, C:\Users\username\Documents\Android\Android Studio\projects\ShowLong).Android Studio can compile and run your Java application.f
  • #1
301
0
I have installed the Android Studio but whenever I open it, it says no JDK was found and it told me to install a 32-bit JDK. I'm using Windows 8. But I already have installed JDK and created a path in Environment Variables. In the variable name, I put JAVA_HOME and in the variable value, I put C:\Program Files\Java\jdk1.8.0_40\bin but it still told me to install a 32-bit JDK. What's wrong?
 
  • #2
Perhaps you should be putting it under the C:\Program Files (x86) folder, since it is 32 bit.
 
  • #3
How do I put it there? If I put it there, will it work?
 
  • #4
If you installed a 32 bit jdk, it should already be there. Right now you have JAVA_HOME pointed at the 64 bit jdk. I bet that if you point JAVA_HOME to your 32 bit installation, (which is what android studio apparently needs), then it will work.
 
  • #5
So what do I do now?
 
  • #6
So what do I do now?
Uh, try starting android studio?
 
  • #7
You might also want to check if you downloaded the Android SDK and that you have pointed the ANDROID_HOME variable to C:\Program Files (x86)\Android\android-sdk\. For my setup I have JAVA_HOME pointed to C:\Program Files\Java\jdk[VERSION NUMBER], and ANDROID_HOME set up as above.
 
  • #8
So I changed my variable value for JAVA_HOME and I set up the ANDROID_HOME variable with the above variable value but it says "The environment variable JAVA_HOME with the value of ... doesn't point to a valid JVM installation.
 
  • #9
My PC's operating system is 32 bit, x64-based processor when I checked the computer's properties in the start menu.
 
  • #10
I put JAVA_HOME and in the variable value, I put C:\Program Files\Java\jdk1.8.0_40\bin
JAVA_HOME shouldn't point at the bin directory. Set it to C:\Program Files\Java\jdk1.8.0_40 instead. Only your PATH variable should point at the bin directory.
 
  • Like
Likes Math10 and TheDemx27
  • #11
I did as you said but it still won't work, it still says the same thing.
 
  • #12
Are you sure you downloaded the 32-bit version of JDK?
 
  • #13
I'm not sure. What should I do now?
 
  • #14
I did as you said but it still won't work, it still says the same thing.
The same thing as your first post (install a JRE) or post 8 (JVM isn't valid)?
 
  • Like
Likes Math10
  • #15
The environment variable JAVA_HOME with the value C:\Program Files\Java\jdk1.8.0_40\bin doesn't point to a valid JVM installation.
 
  • #16
The environment variable JAVA_HOME with the value C:\Program Files\Java\jdk1.8.0_40\bin doesn't point to a valid JVM installation.
Your JAVA_HOME value does NOT have the \bin part and it's still telling you that it's not a valid JVM? Have you verified that it's there and hasn't been moved? Also, watch carefully for copying mistakes like missing or extra spaces. I would copy your JAVA_HOME value and enter it directly into your Windows Explorer to make sure that it's correct.
 
  • Like
Likes Math10
  • #17
Okay, you know what? It worked! Now I'm waiting for the wizard for downloading Android SDK tools! Thank you so much for the help! I really appreciated it!
 
  • #18
Okay, you know what? It worked! Now I'm waiting for the wizard for downloading Android SDK tools! Thank you so much for the help! I really appreciated it!
Excellent! :w
 
  • Like
Likes Math10
  • #19
But can you compile and run an android application in android studio?
 
  • #20
But can you compile and run an android application in android studio?
I assume that you can but I haven't used it before.
 
  • #21
So after you developed an android app in android studio, can you upload the app in the android developer account process? And how do you get your revenue (income)? Assuming a free app with in-app purchases.
 
  • #22
I just installed the Android Studio and want to write my Java application in it. But when I opened the android studio and clicked on start a new android studio project, what should I put for the application name and the company domain and the project location? Let's say that I'm about to write a Java application and want to save it as ShowLong.java, what should the application name be? And can android studio compile and run my Java application?
 
  • #23
If you have no idea how to use this, why do you think people would buy anything from you? We are not here to teach you. Learn this, then if you have a specific question, come back and ask that specific question.
 
  • Like
Likes phinds and Medicol

Suggested for: I can't open Android Studio?

Back
Top