Android studio overview and Problems
Now, I will briefly describe what androidstudio is !, This article mainly solves the problem of failure after installation!
- Make sure the download is successful. Otherwise, download again. After the download, click Install.
- Are you sure you have installed JDK 1.6/JDK 17?
- Make sure that your Java environment variable configuration is complete (check method: start = "cmd => JAVA or Java version =" press enter and you will be prompted that the command is not configured! Java environment variable configuration
- If the preceding steps are correct, modify the configuration file of androidstudio.PS: Back up the file you want to modify before modification, as shown in figureStudio. bat
Copy and back up the studio. bat. Bak File
- Find studio.exe. vmoptions in the bindirectory and remove the line containing usecodecacheflushing.
- Use NotePad to open studio. bat under the Android-studio \ bin directory
Set vm_options_file = % ide_bin_dir % \ studio=bits=.exe. vmoptions
Set vm_options_file = % ide_bin_dir % \ studio1_bits0000.exe
You can use it.
- Check that your operating system is a single-digit version, and androidstudio supports 64-bit by default. If your host is 32-bit, use a text tool to open studio. bat.
Line25 to line 28:
Set JRE = % JDK %
If exist "% JRE % \ JRE" set JRE = % JDK % \ JRE
Set bits =
If exist "% JRE % \ Lib \ amd64" set bits = 64
We can see that the number of system bits supported by the software is 64 bits, and my own computer is a 32-bit JRE/lib directory with only i386 files.
Try to change if exist "% JRE % \ Lib \ amd64" set bits = 64 to if exist "% JRE % \ Lib \ i386" set bits = 32
After the configuration is modified, restart and try again. Can it be run! Happy!But don't be too happy, because when you write a hellostudio, He prompts you to download a gradle file. If you do not have a local file, he needs to download it from the Internet!
If the network speed is not good, it is estimated that the file will not be downloaded after half a day, and this file is necessary, because the sudio tool relies on gradle to build the project, gooogle is also such an important thing that is not integrated. Gelao Tzu's!