I can't open Android Studio?

  • Thread starter Math10
  • Start date
  • #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?
 

Answers and Replies

  • #2
TheDemx27
Gold Member
170
13
Perhaps you should be putting it under the C:\Program Files (x86) folder, since it is 32 bit.
 
  • #3
301
0
How do I put it there? If I put it there, will it work?
 
  • #4
TheDemx27
Gold Member
170
13
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
301
0
So what do I do now?
 
  • #6
TheDemx27
Gold Member
170
13
So what do I do now?
Uh, try starting android studio?
 
  • #7
TheDemx27
Gold Member
170
13
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
301
0
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
301
0
My PC's operating system is 32 bit, x64-based processor when I checked the computer's properties in the start menu.
 
  • #10
Borg
Science Advisor
Gold Member
1,889
2,434
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
301
0
I did as you said but it still won't work, it still says the same thing.
 
  • #12
1,532
464
Are you sure you downloaded the 32-bit version of JDK?
 
  • #13
301
0
I'm not sure. What should I do now?
 
  • #14
Borg
Science Advisor
Gold Member
1,889
2,434
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
301
0
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
Borg
Science Advisor
Gold Member
1,889
2,434
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
301
0
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
Borg
Science Advisor
Gold Member
1,889
2,434
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
301
0
But can you compile and run an android application in android studio?
 
  • #20
Borg
Science Advisor
Gold Member
1,889
2,434
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
301
0
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
301
0
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
Evo
Mentor
23,177
2,961
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

Related Threads on I can't open Android Studio?

  • Last Post
Replies
4
Views
488
Replies
17
Views
823
Replies
1
Views
1K
  • Last Post
Replies
4
Views
798
Replies
1
Views
1K
Replies
1
Views
2K
  • Last Post
Replies
10
Views
3K
  • Last Post
Replies
7
Views
25K
Replies
6
Views
9K
  • Last Post
Replies
1
Views
3K
Top