Opened on 05/23/2017 at 07:01:47 AM

Last modified on 08/08/2017 at 11:44:17 AM

#5266 new defect

Can't run tests on arm64 device/emulator

Reported by: asmirnov Assignee:
Priority: P4 Milestone:
Module: Libadblockplus-Android Keywords:
Cc: sergz Blocked By: #5267, #5473
Blocking: Platform: Android
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):



We're having precompiled 32 bit libadblockplus binaries in repo for armeabi-v7a and x86. libadblockplus-android module uses it and provides that is used by both libadblockplus-android-tests and libadblockplus-webviewapp modules.

However, one can run webviewapp on 64 bit device (arm64) but can't run tests on 64 bit device/emulator with the following error:

java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/org.adblockplus.libadblockplus.tests.test-1/lib/arm/" is 32-bit instead of 64-bit
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at org.adblockplus.libadblockplus.JsEngine.<clinit>(
at org.adblockplus.libadblockplus.tests.BaseJsTest.setUp(
at org.adblockplus.libadblockplus.tests.FilterEngineGenericTest.setUp(
at android.test.AndroidTestRunner.runTest(
at android.test.AndroidTestRunner.runTest(
at android.test.InstrumentationTestRunner.onStart(

How to reproduce

  1. attach arm64 device or emulator
  2. run any test
  3. make sure the test crashes


Observed behaviour

crash while loading native library

Expected behaviour

native code is loaded and the tests are running

Attachments (0)

Change History (4)

comment:1 Changed on 05/23/2017 at 07:04:11 AM by asmirnov

  • Ready set

comment:2 Changed on 05/23/2017 at 07:04:49 AM by asmirnov

I've tried it in Android Studio 2.1, 2.2.3 and 2.3.2 to exclude IDE issue

comment:3 Changed on 05/23/2017 at 08:23:59 AM by sergz

  • Blocked By 5267 added

comment:4 Changed on 08/08/2017 at 11:44:17 AM by sergz

  • Blocked By 5473 added

Add Comment

Modify Ticket

Change Properties
as new .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from (none).
Next status will be 'reviewing'.
Note: See TracTickets for help on using tickets.