Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Android HAX issues?

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • 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: 107
  • Mark post as helpful
  • send pies
  • 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
  • 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.
     
    Saloon Keeper
    Posts: 5718
    144
    Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
    • Mark post as helpful
    • send pies
    • 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: 107
    • Mark post as helpful
    • send pies
    • 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]
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!