Skip to content
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

Android version crashes on 64bit CPU. #106

Open
tiulkin opened this issue Mar 28, 2016 · 4 comments
Open

Android version crashes on 64bit CPU. #106

tiulkin opened this issue Mar 28, 2016 · 4 comments

Comments

@tiulkin
Copy link

tiulkin commented Mar 28, 2016

The cbl_collator_so-1.0.4-28.jar contains folders with 64bit libs (x86-64,arm64-v8a) and, because of this, those folders appear in an "apk" file with an app. Android sees these folders and think that it has to search other libs (libtiverify.so etc.) there. Of course, they are missing there, and the app crashes.

@OliRead
Copy link

OliRead commented May 27, 2016

Did you find any way to fix this issue?

@tiulkin
Copy link
Author

tiulkin commented May 27, 2016

Yep. Just remove those libs from the jar file and it will work.

@OliRead
Copy link

OliRead commented May 27, 2016

Ok, so I deleted the folders: arm64-v8a and x86_64 from the cbl_collator_so-1.0.4-28.jar file. Rezipped the folder and changed the extension to .jar

I'm still having issues, do I need to recompile the module or anything else?

Error Log
[ERROR] TiExceptionHandler: (main) [411,411] ----- Titanium Javascript Runtime Error -----
[ERROR] TiExceptionHandler: (main) [0,411] - In app.js:1,69
[ERROR] TiExceptionHandler: (main) [0,411] - Message: Uncaught Error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.myapp.app-1/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp.app-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libcom_couchbase_touchdb_TDCollateJSON.so"
[ERROR] TiExceptionHandler: (main) [0,411] - Source: er=require("com.obscure.titouchdb"),db;if(db=server.databaseManager.getDatabas
[ERROR] V8Exception: Exception occurred at app.js:1: Uncaught Error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.myapp.app-1/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp.app-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libcom_couchbase_touchdb_TDCollateJSON.so"

@tiulkin
Copy link
Author

tiulkin commented Jun 1, 2016

Yes, I've recompiled the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants