• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

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

ac4android

Well-Known Member
Nov 3, 2015
198
29
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:
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"
    useLibrary 'org.apache.http.legacy'

    defaultConfig {
        applicationId "com.buildersdelivery.testhttpconnection"
        minSdkVersion 17
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'

    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.android.support:design:23.2.1'

}

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?
 
Do I find and download a new version of HAXM?

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."
 
Upvote 0
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.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones