New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
couldn't find "librealm-jni.so" #1421
Comments
@DenisBronx Can you get into the |
@DenisBronx It is a symbolic link point to the anther directory. Please help to check if |
@beeender it is empty i believe |
any updates? |
I think I'm having the same problem. Did you find a solution? |
Finally figured out my issue like 5 hours later.... -_-
I changed mine to the latest and it works like before
|
thanks @luca992, it works! |
It is quite strange since we don't depend on any version of gradle or the android plugin… |
Both my coworker and I are seeing this independently and changing the gradle version did not help. EDIT: It turns out that we had an outdated gradle version referenced at a level above. Updating that fixed everything. |
thanks @luca992, I actually had to set my gradle version to 1.3.0 for it work |
Has this been reported to b.android.com, this seems to be a build issue with build tools 1.4.0-beta. |
This same, build issue with build tools 1.4.0-beta |
This problem still happen in build tools 1.4.0-beta2. Is there a any progress? |
I left a bug report on the Android Developer Tools Google+ Community as I had the same issue: I tried the Jar, same issue, the .so are not copied for any ABI. I think this is an issue within the latest build tools and Gradle. |
Reopening this just so it is more visible, in case anyone else run into this problem. However it doesn't sound like it is something we can do much about at this time unfortunately. This bug report on the bug tracker https://code.google.com/p/android/issues/detail?id=182061 seems to indicate it is fixed but not yet released for some reason. |
I have a similar error message: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.shareyourproxy-1/base.apk"],nativeLibraryDirectories=[/data/app/com.shareyourproxy-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "librealm-jni.so" Like the error says, "lib/arm/librealm-jni.so" is missing from the compiled dependencies. I've tried downloading the realm-0.82.2.jar on the website to use as a local copy. I've extracted the contents of the jar and copied the contents of "lib/armeabi/librealm-jni.so" into the previously mentioned folder hierarchy to attempt to mitigate the error. When I repackage the jar, I can't use it to import any io.realm packages in my java like I could with the original unmodified jar. I'm using: |
Had the same issue, used 'com.android.tools.build:gradle:1.2.3' to resolve. And my app was using latest google+ integration (version 8.1.0) and I had to revert to older version of google+ library to resolve the issue. |
1.4.0-beta3 gradle plugin should fix it based on the release notes: I did not tested yet. |
@lvialle No it isn't fixed yet, unfortunately. I just tried it like an hour ago. |
@lvialle Yeah still not fixed for me either on 1.4.0-beta3 :) |
Same here with 1.4.0-beta3, dang can't use onProvideAssistContent() without it. |
Same on 1.4.0-beta4. It's a shame, the 1.4.0 plugin fixes a a showstoppper bug in another area for us. It's like whack-a-mole with this stuff. :/ |
This is really an annoying show stopper for my app :( Not fixed in 1.4.0-beta4 as well ! |
Some more info is here: https://plus.google.com/u/0/+XavierDucrohet/posts/brM78vhMXwj |
couldn't find "librealm-jni.so" |
Got around it by disabling Instant Run. |
Hi @kouroshfar I'll close this issue now, but feel free to reopen if you see this on beta6 or above. |
Hey, I have the same problem with Android Studio 2.0 Beta 6. Only disabling InstantRun is working. |
beta6 not working for me either, still need to disabled Instant Run. |
Any version starting Android Studio 2.0 (Preview), only build with instant run disable. |
Apparently the fix got pushed to beta7 instead: https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened&groupby=&sort=&id=200635 |
Let's close it as it is scheduled but out of our hands. |
@kneth I got the same issue, I'm trying to update the Realm from 0.87 to 2.0.0 , but i can't run the app with the problem com.getkeepsafe.relinker.MissingLibraryException: lib/armeabi/librealm-jni.so; |
@Botasky369 Do you have any other library which has a |
@beeender Yes, I found some .so in my /data/data/packagename/lib file, some like libamapv304.so/libamapv304ex.so/libBugTags.so and others . But there is not librealm-jni.so. |
@Botasky369 It depends. If all the libs have |
@beeender I delete the |
@beeender I have clean and rebulid the projiect. |
@Botasky369 can you decompress you final apk file, and show the list and structure of |
@beeender That's Bad, I don't know why. I can decompress the apk before I update the AndroidSutdio to 2.2 |
@beeender Well, I found there has some code was suspicious at the gradle, and I delete it, and the app can run normal.Thx. |
compile 'io.realm:realm-android:0.87.4' |
Hello, 0.87.4 is super old, the latest version is please read https://realm.io/docs/java/latest/ |
Hello, this is appear again if i'm using proguard on my release buildTypes:
|
Well if Relinker can't find it, it's not there. You might have an abiFilter set up and it removes |
So what should i do ? Is this correct if i'm doing this:
|
Do you have any other native libraries that are 32-bit only? |
No, i don't have. |
After the last android updates i found this error in every project i use realm
this is the stacktrace:
08-25 16:03:40.457 16017-16017/it.fortech.fortechmobilepayment E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: it.fortech.fortechmobilepayment, PID: 16017
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/it.fortech.fortechmobilepayment-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "librealm-jni.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:988)
at io.realm.internal.RealmCore.loadLibrary(RealmCore.java:114)
at io.realm.internal.SharedGroup.(SharedGroup.java:35)
at io.realm.Realm.(Realm.java:205)
at io.realm.Realm.createAndValidate(Realm.java:594)
at io.realm.Realm.create(Realm.java:564)
at io.realm.Realm.getInstance(Realm.java:411)
at io.realm.Realm.getInstance(Realm.java:368)
at io.realm.Realm.getInstance(Realm.java:349)
at it.fortech.fortechmobilepayment.account.LoginActivity.onCreate(LoginActivity.java:55)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Tested on Nexus 5 device
Android Studio 1.3
OS X 10.10.5
The text was updated successfully, but these errors were encountered: