Andriod studio experience log 1st-Solve the Problem of cannot open

Source: Internet
Author: User

It may be that my project is relatively simple and I have not encountered the so-called "inexplicable" problem. The project I imported is also running normally today, which is a staged result. Now you have time to look back.

Day 1

At the google I/O conference in 2013, I released a dedicated andriod development environment. Instead of downloading IT immediately, I read the IT website reports, although as is faster and easier to use than other development environments, it may be an inexplicable error because it is an "incomplete" version. Is it true? You have decided to try it out. Go to the csdn-mobile-android topic and find the official link to download it! My system is xp. After installation, the icon is displayed in the Start Menu. Click little green! Good guy, no response? I also installed the latest jdk1.7 ah, immediately search, found c122532318 Article http://blog.csdn.net/whuancai/article/details/8934898), checked their own system, found that did not set java_home environment variables. Later, I checked the information and summarized the solution to the problem that android studio could not be opened after installation. Most of them were sorted by practical degree by netizens). I don't have to try the next one if I can:

The first time you run the program, you need to download some items. If some errors are prompted, please check the errors and open the download again to run the program. It may be that the download was not complete at the time of download.

2. Check whether the jdk path is configured. There is no problem in both 1.6 and 1.7.

If not ~ Now we have to start configuring the environment ~ My computer-> properties-> advanced --> environment variable is for XP. I believe that friends who use win7 also know how to proceed with this process ~ ^_^)

Click "system variable s)" to create a new one. In the displayed dialog box, there are two input boxes-variable name and variable value). In the variable name input box, enter java_home, in the variable value input box

Enter your JDK path. The path is C: \ Program Files \ Java \ jdk1.7.0 _ 17, as shown in figure

650) this. width = 650; "src =" http://img.blog.csdn.net/20130516143226930 "style =" border: 0px none; max-width: 100%; "/>

Click OK or apply ~~ (If you can run it, you don't need to read it again ~ Otherwise, continue to the next step)

If your Android Studio cannot run, add the bin path of Android Studio to the path variable as follows:

1> my computer-> properties-> advanced --> environment variables,

2> double-click "Path" in "system variables", add the bin Path of your Android Studio to the beginning, and use a semicolon (semicolon)

It is separated from other paths ~ Click OK or apply! (The default bin path of Android Studio is C: \ Program Files \ Android \ android-studio \ bin)


3. run Windows 7 as an administrator.

4. Find studio.exe. vmoptions in the bindirectory and remove the line containing UseCodeCacheFlushing.

5. Use notepad to open studio. bat under the android-studiobin directory
SET vm_options_file=ide_bin_dir=studio=bits=.exe. vmoptions
SET vm_options_file1_incluide_bin_dir1_studio1_bits0000.exe
You can use it.

6 open it with a text Tool
Studio. bat
Line25 to line 28:
Set jre = % JDK %
If exist "% JRE % jre" set jre = % JDK % jre
Set bits =
If exist "% JRE % libamd64" 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

If exist "% JRE % libamd64" set bits = 64
If exist "% JRE % libi386" set bits = 32


When I set the environment variables and then try to open andriod studio, it will be able to run successfully!


This article is from the "follow mobile development" blog. For more information, contact the author!

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.