Quantcast
Viewing all articles
Browse latest Browse all 8068

x86 libs not included in production APK

I have this error with an x86 android device :

06-24 16:53:27.581: E/TiApplication(26733): (KrollRuntimeThread) [243,439] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared: findLibrary returned null; Titanium 3.1.0008,2013/05/20 15:16,13dc078
06-24 16:53:27.581: E/TiApplication(26733): java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared: findLibrary returned null
06-24 16:53:27.581: E/TiApplication(26733):     at java.lang.Runtime.loadLibrary(Runtime.java:365)
06-24 16:53:27.581: E/TiApplication(26733):     at java.lang.System.loadLibrary(System.java:535)
06-24 16:53:27.581: E/TiApplication(26733):     at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:56)
06-24 16:53:27.581: E/TiApplication(26733):     at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:175)
06-24 16:53:27.581: E/TiApplication(26733):     at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
06-24 16:53:27.591: E/AndroidRuntime(26733): FATAL EXCEPTION: KrollRuntimeThread
The lines responsible for this error are included in the Titanium build code android/builder.py :
for abi in self.abis:
            lib_source_dir = os.path.join(sdk_native_libs, abi)
            lib_dest_dir = 'lib/%s/' % abi
            if abi == 'x86' and ((not os.path.exists(lib_source_dir)) or self.deploy_type == 'production'):
                # x86 only in non-production builds for now.
                continue
When I remove the if condition, the app works fine.

Does someone know if it's safe to remove these lines or if any other solution exists?

Note : I have noticed these similar issues, but there is no satisfying answers :


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>