Android studio cannot be opened.

Source: Internet
Author: User

Android studio overview and Problems

Now, I will briefly describe what androidstudio is !, This article mainly solves the problem of failure after installation!
  1. Make sure the download is successful. Otherwise, download again. After the download, click Install.
  2. Are you sure you have installed JDK 1.6/JDK 17?
  3. 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
  4. 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
  5. Find studio.exe. vmoptions in the bindirectory and remove the line containing usecodecacheflushing.
  6. 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.
  7. 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!



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.