75662

Android studio not running

Question:

I just created my first android project in Android studio .It is the default hello word app.When i ran it in the virtualised emulator i got the following error.Please help me sort it out.

emulator: WARNING: Requested RAM size of 1536MB is too large for your environment, and is reduced to 1152MB. HAX is not working and emulator runs in emulation mode Cannot set up guest memory 'pc.ram': Invalid argument emulator: device fd:576 emulator: The memory needed by this VM exceeds the driver limit. Error accepting connection, aborting

Thanks in advance.

Answer1:

Your HAXM is not working try reinstalling it and set the initial value(768MB recommended) of memory to less than the RAM of your computer. You need to reduce the RAM size of the emulator you are trying to run. And make sure the emulator is not exceeding the value you set while installing the HAXM. If HAXM is set to 768MB, reduce it to further and set RAM to 512MB set for it to work properly.

Android Studio:

<ol><li>Tools -> Android -> AVD Manager</li> <li>Click on Edit this AVD</li> <li>Show Advanced Settings -> Memory and Storage</li> <li>Set RAM to 512MB -> Finish</li> </ol>

Eclipse:

<ol><li>Choose your emulator device and </li> <li>Click Edit to edit the configurations.</li> <li>Window -> AVD Manager</li> <li>Under Memory Options you will find RAM options. Now set it up to a minimal value such as 512MB.</li> </ol>

Now try running your emulator now. Hopefully it should be able to start now.

Recommend

  • Matplotlib: Draw a vertical arrow in a log-log plot
  • Problems launching the emulator in Android Studio.
  • Role Instances are taking longer than expected to start
  • NullPointerException while adding an object to an array
  • rabbitmq-erlang-client, using rebar friendly pkg, works on dev env fails on rebar release
  • How to convert string to table or objects in powershell
  • Ionic:Android Emulator Error
  • How to make local USB port to work with Azure virtual machine
  • How to reduce the time delay to reach run method of Runnable class using ExecutorService Java
  • EventEmitter in shared service's constructor doens't emit data
  • QVideoWidget: Video is cut off
  • InputDispatcher Error
  • Background image does not show on iPhone/iPad
  • Java Netbeans Error Cannot find symbol, symbol: class out, location: class System, expected, illega
  • google-maps-sdk-ios - arm 7/iphone 5 issues for Google Maps 1.4.3 for iOS
  • TensorFlow C++, runtime issue
  • Use allowDiskUse in criteria query with Grails and the MongoDB plugin?
  • What is Closure Compiler?
  • Ruby: FileUtils.cp truncates file; FileUtils.mv it does not?
  • Update varbinary(MAX) field in SQLServer 2012 Lost Last 4 bits
  • Motorola barcode scanner SDK events C#
  • Where these are stored?
  • What causes the runtime difference in this trivial fortran code?
  • Is there a package like bigmemory in R that can deal with large list objects?
  • netsh acl setting (need alternative method - registry settings?)
  • Spark job failing in YARN mode
  • ViewController With Transparent Background Entering Current ViewController With Push Transition
  • C# - Is there a limit to the size of an httpWebRequest stream?
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • DotNetZip - Calculate final zip size before calling Save(stream)
  • Perl system calls when running as another user using sudo
  • Benchmarking RAM performance - UWP and C#
  • How to set the response of a form post action to a iframe source?
  • Hits per day in Google Big Query
  • Memory offsets in inline assembly
  • Change div Background jquery
  • File not found error Google Drive API
  • Qt: Run a script BEFORE make
  • reshape alternating columns in less time and using less memory
  • Converting MP3 duration time