1. Download our Official Android App: Forums for Android!

Apps Hardware Acceleration and Heap Size Errors ??????

Discussion in 'Android Development' started by ac4android, May 18, 2016.

  1. ac4android

    ac4android Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    198
    Joined:
    Nov 3, 2015

    Nov 3, 2015
    198
    29
    53
    I seem to have the most unusual error. My A/S 1.5.1 has been working fine with x86_64 emulation until a big, recent update from Android Studio.

    I have been using org.apache.http.legacy t0 connect to a remote MySQL server and I am getting this error about the VM heap size:

    HeapError.JPG

    In AVD Manager, I've been wiping data and then cleaned and rebuilt the project, but the error persists. I suspect it might have to do with my build.gradle (Module.app);
    Code (Text):
    1.  
    2. apply plugin: 'com.android.application'
    3.  
    4. android {
    5.     compileSdkVersion 23
    6.     buildToolsVersion "23.0.2"
    7.     useLibrary 'org.apache.http.legacy'
    8.  
    9.     defaultConfig {
    10.         applicationId "com.buildersdelivery.testhttpconnection"
    11.         minSdkVersion 17
    12.         targetSdkVersion 21
    13.         versionCode 1
    14.         versionName "1.0"
    15.     }
    16.     buildTypes {
    17.         release {
    18.             minifyEnabled false
    19.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    20.         }
    21.     }
    22. }
    23.  
    24. dependencies {
    25.     compile fileTree(dir: 'libs', include: ['*.jar'])
    26.     testCompile 'junit:junit:4.12'
    27.  
    28.     compile 'com.android.support:appcompat-v7:23.2.1'
    29.     compile 'com.android.support:design:23.2.1'
    30.  
    31. }
    32.  
    What have I done ( or not done ) and what must I do now?

    Do I find and download a new version of HAXM?

    What is HAXM?
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,292
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,292
    10,403
    1,988
    Male
    Software developer
    South West of England
    It's worth a try isn't it, given the error message?
    Download 6.0.1 from here

    https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

    "Intel Hardware Accelerated Execution Manager (Intel® HAXM) is a hardware-assisted virtualization engine (hypervisor) that uses Intel Virtualization Technology (Intel® VT) to speed up Android* app emulation on a host machine. In combination with Android x86 emulator images provided by Intel and the official Android SDK Manager, Intel HAXM allows for faster Android emulation on Intel VT enabled systems."
     
  3. twlawrenceko

    twlawrenceko Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    May 29, 2016

    May 29, 2016
    1
    0
    5
    I also installed one app to my phone, and I only put one background image, and the size is only 1000*600, when I shake the phone, then it grow heaps, and after some time, the app crashes by heap allocation. But when I unplug my phone with computer, then there's no issue with it. It's an app with GPS info and address.
     
  4. ac4android

    ac4android Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    198
    Joined:
    Nov 3, 2015

    Nov 3, 2015
    198
    29
    53
    I installed the new HAXM and the problem went away.
     

Share This Page

Loading...