{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1034","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1034/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1034/events","html_url":"https://github.com/realm/realm-java/issues/1034","id":68741544,"number":1034,"title":"UnsatisfiedLinkError running Android tests on x86 and ARM Emulator","user":{"login":"n0k","id":5841698,"avatar_url":"https://avatars.githubusercontent.com/u/5841698?v=3","gravatar_id":"","url":"https://api.github.com/users/n0k","html_url":"https://github.com/n0k","followers_url":"https://api.github.com/users/n0k/followers","following_url":"https://api.github.com/users/n0k/following{/other_user}","gists_url":"https://api.github.com/users/n0k/gists{/gist_id}","starred_url":"https://api.github.com/users/n0k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n0k/subscriptions","organizations_url":"https://api.github.com/users/n0k/orgs","repos_url":"https://api.github.com/users/n0k/repos","events_url":"https://api.github.com/users/n0k/events{/privacy}","received_events_url":"https://api.github.com/users/n0k/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/Pending","name":"Pending","color":"ededed"},{"url":"https://api.github.com/repos/realm/realm-java/labels/support","name":"support","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-15T17:31:33Z","updated_at":"2015-04-18T01:23:33Z","closed_at":"2015-04-18T01:23:33Z","body":"Hi,\r\n\r\nI'm encountering an issue getting Realm tests to run on the emulator in Android Studio. I've defined some tests like:\r\n\r\npublic class RealmManagerTest extends AndroidTestCase {\r\n    private Realm mRealm;\r\n\r\n    public void setUp() throws Exception {\r\n        mRealm = Realm.getInstance(getContext());\r\n    }\r\n\r\n    public void tearDown() throws Exception {\r\n        mRealmManager.close();\r\n    }\r\n\r\n    public void test1() {\r\n    \t// ...\r\n    }\r\n    \r\n    public void test2 {\r\n    \t// ...\r\n    }\r\n}\r\n\r\nwhen I've executed the tests I get a link error relates to libtightdb-jni.so:\r\n\r\nRunning tests\r\nTest running started\r\njava.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file \"/system/framework/android.test.runner.jar\", zip file \"/data/app/com.myprojects.nikhil.myapp.test-2/base.apk\", zip file \"/data/app/com.myprojects.nikhil.myapp.test-2/base.apk\"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find \"libtightdb-jni.so\"\r\nat java.lang.Runtime.loadLibrary(Runtime.java:366)\r\nat java.lang.System.loadLibrary(System.java:989)\r\nat io.realm.internal.TightDB.loadLibrary(TightDB.java:144)\r\nat io.realm.internal.SharedGroup.<clinit>(SharedGroup.java:34)\r\nat io.realm.Realm.<init>(Realm.java:204)\r\nat io.realm.Realm.createAndValidate(Realm.java:522)\r\nat io.realm.Realm.create(Realm.java:486)\r\nat io.realm.Realm.getInstance(Realm.java:404)\r\nat io.realm.Realm.getInstance(Realm.java:366)\r\nat io.realm.Realm.getInstance(Realm.java:347)\r\n\r\nI'm using realm-0.80.0.jar and have tried gradlew clean assemble to no effect. My app is using Android 5.0.1 API 21 for both ARM and x86. "},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/94111259","html_url":"https://github.com/realm/realm-java/issues/1034#issuecomment-94111259","issue_url":"https://api.github.com/repos/realm/realm-java/issues/1034","id":94111259,"user":{"login":"n0k","id":5841698,"avatar_url":"https://avatars.githubusercontent.com/u/5841698?v=3","gravatar_id":"","url":"https://api.github.com/users/n0k","html_url":"https://github.com/n0k","followers_url":"https://api.github.com/users/n0k/followers","following_url":"https://api.github.com/users/n0k/following{/other_user}","gists_url":"https://api.github.com/users/n0k/gists{/gist_id}","starred_url":"https://api.github.com/users/n0k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n0k/subscriptions","organizations_url":"https://api.github.com/users/n0k/orgs","repos_url":"https://api.github.com/users/n0k/repos","events_url":"https://api.github.com/users/n0k/events{/privacy}","received_events_url":"https://api.github.com/users/n0k/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T01:23:33Z","updated_at":"2015-04-18T01:23:33Z","body":"That was the problem. Thanks for your help."}}