简体   繁体   中英

set up android studio

Help please can't set up Android studio 1.4 to work properly on my pc. Been on it for about a week now, and it's frustrating. Some errors I get:

9:21:34 PM Gradle sync started
9:21:38 PM Gradle sync failed: Unable to start the daemon process.
           This problem might be caused by incorrect configuration of the daemon.
           For example, an unrecognized jvm option is used.
           Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.4/userguide/gradle_daemon.html
           Please read the following process output to find out more:
           -----------------------
           Error occurred during initialization of VM
           Could not reserve enough space for object heap
           Error: Could not create the Java Virtual Machine.
           Error: A fatal exception has occurred. Program will exit.
           Consult IDE log for more details (Help | Show Log)

Here's what my screen looks like

screen shot after launching a project

I have installed all the marked options from Android SDK Manager, yet it's still not working. Always launch with the "run as administration" option, and have tried launching while offline and online. Help please.

You probably wiil not have enough free memory on your computer.

Remember you gonna have a problem if you didn't have at least 1GB of free memory

Run Android Studio as Administrator:

  1. Go to File and press Settings (or use shortcut: Ctrl+Alt+S)

  2. Go to Compiler

  3. Find VM Options and put -Xmx512m.

  4. Press Apply

  5. Press OK

  6. restart IDE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM