I've just downloaded and installed Android Studio on a Windows 7 PC without issue.
For a Windows 10 (x64), it's a totally different matter - whatever I do Studio refuses to even open - no splash screen nothing. I know there are many posts/Youtube videos saying "all" you have to do is ensure the environment variables are correct - which they absolutely are!
I've setup all the required environment variables, path is correct and points to Gradle 3-4, have even installed Java to off the root of C: in a folder without any spaces (as advised by an obscure post I read somewhere) and Studio is configured as Administrator. If I even delete the environment variables, point them to invalid locations, nothing.
If I run the EXE (Studio64.exe) from a command prompt- nothing. I have no Studio.bat btw.
Java is installed correctly (java -version is ok : 1.8.0.144). I have even made the local user owner (with full control) of all Android, Java folders.
I seriously do not know what else to try.
Any ideas would be greatly appreciated.
On a side note, I've installed Studio on my work PC (also windows 10) and this works like a charm. Also, on the Win7 install I've even removed ALL environment variables and Studio still works running Studio64.exe(!!???)
I've attached screenshots of my environment variables:
Related
Firstly, I want to say that I looked into all the solutions in here and on the net but couldn't resolve the issue.
My system properties : 16GB RAM, Intel Core i7-7700HQ CPU 2.80ghz and 64-bit version of Windows 10.
The virtual device I'm trying to use : Nexus 5X API 30, Android 11.0, arm64/x86 for CPU/ABI.
When I'm trying to start android-studio emulator this error(in the title) pops up. What I've done so far is:
I installed Android Studio to C:\Program Files\Android\Android Studio and after that I installed SDK's to E:\Android-SDK folder because my default path C:\Users\username\AppData\Local\Android\Sdk has non-ascii characters and space because of my username.
I changed the values of environment variables ANDROID_HOME and ANDROID_SDK_ROOT to E:\Android-SDK
I have 16GB RAM and enough memory for both C and E disks (40gb and 140gb respectively.). I'm not facing any issues while executing the program, just the emulator doesn't work properly and nothing appears in the Event Log (can be seen in below).
Lastly, while I was searching for the solution I noticed that all of the people who are suffering from this error have a common ground that is they're using non-ascii characters because of their alphabet. Android studio doesn't allow you to use non-ascii characters in the file path. As I mentioned above my SDK paths are not the default for this reason. So the error might be caused by this.
For those who have the same issue with me, after a long investigation i found that my SDK and AVD paths were broken. The Android Studio only says "process killed" and in the event log there was nothing. I was sure that the issue wasn't about my system requirements so I ran the Emulator from command prompt to see the detailed error and the error was "PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value". After that I set the Environment Variables for ANDROID_SDK_ROOT and ANDROID_AVD_HOME (You can see the detailed instructions from here). Then I created a new virtual device (this is IMPORTANT because the old devices was still using the old paths.) and my issue is resolved. I wrote my solution here for everyone to see because the issue took to much effort to resolve it.
I want to write apps for android but I'm having an unresolved problem by installing IntelliJ IDEA.
The installation runs good, but always when I try to select the Android SDK, I get the famous error: The selected directory is not a valid home for Android SDK
I tried many ways to resolve it.
I read other tasks on SO but nothing helped me very well.
I adapted the system environment variables
I tried different paths (like C://User/AppData/Local/Android/SDK and C://Program Files/Android/SDK)
I checked the path for mistakes (like blanks)
I uninstalled the program (for round about three times)
I restarted my pc
I restarted the program
checked if all is correct (and it was. Every time.)
I run as administrator
I checked if the files are writeable
I tried Android Studio of course too, but the error occurs nonetheless.
Here are my PC Specs:
- Have an Asus ZenBook
- i7-7500U CPU
- 8GB RAM
- Win10 Home
I really hope you can help me. Thanks a lot.
In Android Studio go to File->Settings->Syestem Settings->Android SDK than click on Android SDK Location Edit button It'll auto-detect SDK location in your system if SDK not found than download window will open and from there download SDK. For your ease see the below image.
I just downloaded the Android Developer Tools Bundle. I started following the setup instructions and gotten as far as extracting the files to new location ("Development") as it says. I tried running the Eclipse app as instructed, yet a window popped up saying;
A Java Runtime Environment (JRT) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following location:
C:.........\Development\adt-bundle-windows\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"
I tried compatibility trouble-shooter which can not detect a thing, whether it was the right action to take. I looked across stackoverflow and tried a few of the suggestions with no change. I looked at windows site and android site and nothing seems to make any difference, good or bad (well, I hope no bad).
I literally got this laptop 10 days ago and all programs are brand new, no updates or reinstalls etc.
I am running a Windows 8 with 64bit, which is what I selected at download of ADT Bundle.
I had downloaded the wrong java file.
To fix I went to;
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html
and accepted terms then downloaded the appropriate file which I had to signup for registration;
Windows x64 90 MB jdk-7u7-windows-x64.exe
It worked without changing any PATH.
Thank you..
At first download jdk(java development kit) and install it. the jdk includes the jre(java runtime environment). You can also install the jre alone.
Thank It worked. Just add C:\Program Files\Java\jdk1.7.0\bin in your PATH
Control Panel
1. System
2. Advance Setting
3. Advance
4. Environment Variables
5. System variable Group
6. look For PATH in the list
7. Edit
8. Add path of your C:\Program Files\Java\jdk1.7.0\bin jdk installation and save
Remember to separate value with ;
You must download a JDK or JRE first from java.oracle.com, and add your installation folder in the PATH system avaiable.(Control Panel --System--Advance Settings --advance -- enviroment)
Go to the following page and download the executable on java.com
The executable installs the latest JAVA virtual machine.
NOTE: for Windows only
The installer knows your current version of windows.
This question already has answers here:
Closed 11 years ago.
Possible Duplicates:
Not able to launch android emulator
Starting the Android emulator in SDK tools, revision 12
http://developer.android.com/sdk/eclipse-adt.html#installing I followed the instructions here for a windows 7 machine using a 64 bit operating system. It's a clean system install. I first installed the Android SDK and then installed Eclipse and then installed the ADT Plugin.
At first, simply nothing was happening. I'd click window-> android and it'd bring up the list of emulators I had made. I'd select one then click start and nothing. ADB.exe wasn't even in my systems resources. I made sure Kaspersky had added adb.exe to it's trusted list and tried again, still no dice.
I then saw an article saying I should move adb.exe from platform-tools to just tools so I tried that. That made it switch from doing nothing (and reporting nothing in the console or logcat) to where it is now. It says
invalid command-line parameter: Files.
Hint: use '#foo' to launch a virtual device named 'foo'.
please use -help for more information
Any more theories on what I can try would be greatly appreciated.
For further clarification the foo message happened with platform of 2.3.3. or 3.2 selected. When trying platform 3.0 it went back to nothing.
I had the same problem which was quite annoying me until I found a "fix" (well it does not solve the problem at its roots but helps a lot anyway):
Simple create a batch file with the following content:
CD "C:\Program Files\Android\android-sdk\platform-tools"
adb kill-server && adb start-server
Of course you have to adjust the correct android platform-tools path.
So whenever a running emulator is not recognized by Eclipse or DDMS simply run this batch.
I had this trouble when my SDK was installed in 'Program Files'.
The invalid command line parameter was the space in the program files part of the argument. I guess Android coming from a Linux world means that whitespace is it's enemy! Despite this being the default install location.
I moved the whole SDK (emulator included) to the root 'C:\' drive. It then started working a treat.
There is bug on the windows version.
Open a command line prompt in the /tools/ folder (which you can find in the sdk folder) then run the emulator-arm.exe -avd nameOfYourVirtualDeviceHere
(btw this will not fix the real issue but allows you to continue to work)
I installed JavaEE, JDK, Eclipse 3.5.x (Galileo), the Android Starter SDK, and the current ADT all with no problems. However, when I try to walk through the 'Hello Android' tutorial, I bring up the New Android Project wizard, fill it in and hit 'Finish'.
After a moment, it comes back with a message saying there was a problem at path X:\so and so\ (access denied).
Things to note:
-Running Windows 7 Home Premium 64-bit
-Quadcore Pentium with 8GB RAM, 8TB NAS
-I am an Administrator
-I have also tried this by activating the full (hidden) Administrator profile
-I have reinstalled everything 8 or 9 times
-I have changed ownership & permissions all over the place
-I have launched eclipse in 'Run as Administrator' Mode
-I have installed Everything as 32-bit, as others have done this successfully
Eclipse creates the folder it's having a problem with, but then cannot work with the .project file it creates (access denied). It then can't save anything so there is nothing but an empty folder 'Hello_Android' on the left within Eclipse.
Anybody have any clues about what is going on-- I'm frustrated. I want to get into this, and I've looked EVERYWHERE on the net trying to crack this nut.... but I need help.
-J
Hmmm. Interesting.
I would double-check permissions on the folder X:\so and so\ and ensure that the Administrators group and/or your account has full control.
Have you tried creating the project outside of the users or systems environment? You know in c:\myprojects
Windows7 and creating/saving files in program files or documents can be a PITA.
Turned out to be a bug with how eclipse is written. I've developed a workaround.
The problem is that eclipse can't write to hidden files, unhide them and it should work.