• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Android HAX issues?

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for your reply. To solve my problem, I actually ran different tutorial. Today when i started android, i think it was running Kotlin application. Event log is giving me following error:
9:32 PM Emulator: Incompatible HAX module version 3,requires minimum version 4

9:32 PM Emulator: No accelerator found.

9:32 PM Emulator: failed to initialize HAX: Invalid argument

Its showing the following code:



MainActivity.java is:


Please guide me how to solve this error.

Zulfi.
 
Zulfi Khan
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I ran the other project, I am getting the same error log messages.

10:33 PM Emulator: Incompatible HAX module version 3,requires minimum version 4

10:33 PM Emulator: No accelerator found.

10:33 PM Emulator: failed to initialize HAX: Invalid argument

10:33 PM Emulator: Process finished with exit code 0

10:33 PM Gradle build finished in 13s 584ms

Please guide me how to solve these errors.

Zulfi.
 
Bartender
Posts: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like HAX has to do with Intel Emulator Accelerator. You may not need to use an HAX enabled image when you are beginning Android development.
These images may require more resources from your system. Using Java or Kotlin would not change the end result.
Here are a few options:
  • Update the Intel Emulator Accelerator on your system. I'm not too sure how, maybe via the SDK manager.
  • Create a new HAX image using the Android Virtual Device (AVD) manager.
  • Do not use a HAX image. It's my understanding the HAX has to do with Intel x86 images.

  • HAX images may require you to enable/disable certain options in your local BIOS and/or services in order to work correctly.
     
    Bartender
    Posts: 7645
    178
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Yep, HAX is a technology to accelerate Android emulation on x86 platforms: https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm

    Although it is optional, you really REALLY want it for the major speedup it provides. Version 3 sounds obsolete: try installing a current version.
     
    Zulfi Khan
    Ranch Hand
    Posts: 183
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi,

    I installed the HAX.
    windows_V7_2_0>silent_install.bat -log -ld
    Intel HAXM updated successfully!


    But now I am getting the following errors which is a huge list:



    11:21 PM Gradle sync started

    11:21 PM Project setup started

    11:22 PM Gradle sync finished in 10s 797ms (from cached state)

    11:22 PM * daemon not running; starting now at tcp:5037

    11:22 PM * daemon started successfully

    11:22 PM Executing tasks: [:app:assembleDebug]

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glShaderSource:3017 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glCompileShader:666 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderiv:2332 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderInfoLog:2369 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteShader:1121 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glShaderSource:3017 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glCompileShader:666 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderiv:2332 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glAttachShader:286 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glAttachShader:286 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glBindAttribLocation:315 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glBindAttribLocation:315 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glLinkProgram:2781 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetActiveUniform:1578 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetUniformLocation:

    11:23 PM Emulator: 2563 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDetachShader:1162 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDetachShader:1162 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteShader:1121 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteProgram:1097 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glShaderSource:3017 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glCompileShader:666 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderiv:2332 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderInfoLog:2369 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteShader:1121 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glShaderSource:3017 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glCompileShader:666 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderiv:2332 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderInfoLog:2369 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteShader:1121 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glAttachShader:286 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glAttachShader:286 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glBindAttribLocation:315 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glBindAttribLocation:315 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glLinkProgram:2781 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDetachShader:1162 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDetachShader:1162 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteProgram:1097 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glShaderSource:3017 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glCompileShader:666 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderiv:2332 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderInfoLog:2369 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteShader:1121 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glShaderSource:3017 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glCompileShader:666 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderiv:2332 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderInfoLog:2369 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteShader:1121 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glAttachShader:286 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glAttachShader:286 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glBindAttribLocation:315 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glBindAttribLocation:315 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glLinkProgram:2781 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetProgramiv:2235 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDetachShader:1162 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDetachShader:1162 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteProgram:1097 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glShaderSource:3017 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glCompileShader:666 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderiv:2332 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderInfoLog:2369 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteShader:1121 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glShaderSource:3017 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glCompileShader:666 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderiv:2332 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetShaderInfoLog:2369 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteShader:1121 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glAttachShader:286 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glAttachShader:286 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glBindAttribLocation:315 error 0x501

    11:23 PM Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glBindAttribLocation:315 error 0x501




    I am using Pix as the device. It shows the emulator screen but no hello world message.

    shows-mobile-emulator-after-installing-new-HAXM.jpg
    [Thumbnail for shows-mobile-emulator-after-installing-new-HAXM.jpg]
     
    Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
    Gift giving made easy with the permaculture playing cards
    https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    reply
      Bookmark Topic Watch Topic
    • New Topic