[TIMOB-26871] Fatal Error for Android 9 (Pie)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2019-03-12T16:12:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | 7.5.0.GA, android, cli, javaLongToJsNumber |
Reporter | Kerberos |
Assignee | Gary Mathews |
Created | 2019-02-16T15:35:17.000+0000 |
Updated | 2019-04-27T20:22:49.000+0000 |
Description
Hello I am getting below error. Modules is working on emulator but not working on devices like Xiaomi MIA2. 2 modules gives smiliar error. When disable modules everthing is ok. I was trying to solve since 1 month. I have tried sdk 7.4.x too
02-14 17:32:05.534 10443 10443 E AndroidRuntime: FATAL EXCEPTION: main
02-14 17:32:05.534 10443 10443 E AndroidRuntime: Process: com.sizebiz.just.live.basketball, PID: 10443
02-14 17:32:05.534 10443 10443 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN8titanium11KrollModule16getProxyTemplateEN2v85LocalINS1_7ContextEEE" referenced by "/data/app/com.sizebiz.just.live.basketball-brYMUgffwqCoZUL5AJLYhA==/lib/arm64/libfirebase.analytics.so"...
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1669)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:139)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:113)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:207)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:113)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:135)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at com.sizebiz.just.live.basketball.JustLiveBasketballApplication.onCreate(JustLiveBasketballApplication.java:159)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5885)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:200)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6692)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
02-14 17:32:05.534 10443 10443 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: FATAL EXCEPTION: main
02-12 12:54:37.901 13804 13804 E AndroidRuntime: Process: com.sizebiz.just.live.basketball, PID: 13804
02-12 12:54:37.901 13804 13804 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN8titanium13TypeConverter18javaLongToJsNumberEPN2v87IsolateEx" referenced by "/data/app/com.sizebiz.just.live.basketball-RC7RJeH7thll-qM3q0WuKQ==/lib/arm64/libti.ga.so"...
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1669)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:139)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:113)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:207)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:113)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:135)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at com.sizebiz.just.live.basketball.JustLiveBasketballApplication.onCreate(JustLiveBasketballApplication.java:159)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5885)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:200)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6692)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Hello [~Kerbooo], What module you are using? Is it a titanium module or a third party. module. Share with us more details. Thanks.
All modules list as below - av.imageview - bencoding.android.tools - firebase.cloudmessaging - firebase.core - ti.android.admob - ti.ga Issue occurs just on Android 9 (Pie) other android verison no error. For example 8.0 or 7.1. and no error on ios too.
Hello, Thanks for letting us know. It would be better if you can share a simple test project to reproduce the issue on our end.
My project is very huge. I don't have simple project but modules versions as below
Hello, Thanks for your feedback. Do the following: 1. Create a new project via studio 2. Include all the modules and try to require all the module on an app.js file 3. Build your project and let us know the results.
Hello again, my ti.playservices version was 11.0.40 I upgraded it to 16.1.2. After that error changed to as below
Hello, Thanks for sharing with us. Did you follow the suggested steps and get this error?
Yes but result is same. Please help me. I can't solve this issue since 2 months.
Hello [~Kerbooo], There is now way for us to investigate and find the root cause of the issue unless we are able to test the issue. Looks like you are using multiple third-party modules. We need a sample project that has all the module inside and able to reproduce the issue. Also, you said this is causing the issue in the device Xiaomi MIA2. 2. Can you try with a different device with the Android 9? Also, try with SDK 8.0.0 master builds for your test. Thanks.
Yes I am getting so many feedback from different Android 9 owner users from Google Play console. Every users say same things. I will create sample project for you. Thank you for your feedback.
Hello. Good morning / afternoon. Adding more details about the issue related to the following message :
it is related about the module of ti.ga https://github.com/benbahrenburg/Ti.GA There is a thread related about that issue, but without fix yet.
But basically, if we use just the following combination: {color:#f79232}firebase.cloudmessaging, and the firebase.core,{color}{color:#8eb021} it will work{color}, but if we use {color:#f79232}firebase.cloudmessaging, firebase.core, and ti.ga{color}, {color:#d04437}it will not work{color}, so we will get the issue described above. Thanks, Antonio.
Hello again, you can download sample project for issue from [Google Drive](https://drive.google.com/file/d/1S-AuQLdw9degzk-oZhn_mrVoBVg7psCM/view?usp=sharing) that was created by Francisco Antonio Duran Ramirez
Same issue here also on Android 8. Could you please provide a quick workaround? Our app is already in production :-(
My app is already in production too. I am getting this issue since 2 months.
I've compile a Ti.GA version that is using the 11.0.40 libraries for analytis: http://migaweb.de/ti.ga-android-4.0.2.zip Can you test that? I'm getting a fcm token + the ga log. Only downside: I'm using Android 7 :)
Thank you very much Michael Gangolf. Yes this ti.ga version is working.
Hello again Michael Gangolf. ti.ga version 4.0.2 gives as {color:red}"FA: Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI"{color} error on console. it is important or not? Thank you in advance.
This issue is due to using an old module that's incompatible with the latest SDK. [~michael] has built a newer version, fixing the compatibility issue. Closing, since this is not a Titanium SDK issue.
Hello, I'm having the same problem. I did a quick research about this and it is not happening because of old modules. It's easy to confirm, just *create a new project with no modules and try to install it into an Android 9 device*, it will fail with this timeout error. [ERROR] : Application failed to install The current timeout is set to 240000 ms I'm using sdk 8.0.0.GA with Android API 28 on a Mac with the same Xiaomi MI A2 Lite device with Android 9. *adb install* is failing for some reason. Just for the record, I built and installed the app manually and is working, but is not posible to install it during development for debugging, adb recognizes my device and is properly configured for development. This issue [#AC-6133] was closed because it was considered a duplicate of this, I'm now sure if that's the case, my problem looks more like [#AC-6133] than the current.
Hello again. This seems to be a known Android issue. Basically you just need to add the following to your ~/.profile or ~/.bash_profile:
Please check my answer in [stackoverflow](https://stackoverflow.com/questions/54607804/application-failed-to-install-android-9-pie/) for more details.