Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26871] Fatal Error for Android 9 (Pie)

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2019-03-12T16:12:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labels7.5.0.GA, android, cli, javaLongToJsNumber
ReporterKerberos
AssigneeGary Mathews
Created2019-02-16T15:35:17.000+0000
Updated2019-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)

Comments

  1. Sharif AbuDarda 2019-02-16

    Hello [~Kerbooo], What module you are using? Is it a titanium module or a third party. module. Share with us more details. Thanks.
  2. Kerberos 2019-02-16

    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.
  3. Rakhi Mitro 2019-02-18

    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.
  4. Kerberos 2019-02-18

    My project is very huge. I don't have simple project but modules versions as below ti.playservices ti.module.share bencoding.android.tools ti.admob av.imageview av.imageview firebase.cloudmessaging firebase.cloudmessaging firebase.core firebase.core ti.android.admob ti.ga ti.ga
  5. Rakhi Mitro 2019-02-19

    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.
  6. Kerberos 2019-02-27

    Hello again, my ti.playservices version was 11.0.40 I upgraded it to 16.1.2. After that error changed to as below
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: FATAL EXCEPTION: main
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: Process: com.sizebiz.just.live.basketball, PID: 12645
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbo;
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:2)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at android.app.ActivityThread.installProvider(ActivityThread.java:6414)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:5961)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5867)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at android.app.ActivityThread.access$1100(ActivityThread.java:200)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:193)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6692)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbo" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.sizebiz.just.live.basketball-Rn8Kb-p0JpC_xcova1olLg==/base.apk"],nativeLibraryDirectories=[/data/app/com.sizebiz.just.live.basketball-Rn8Kb-p0JpC_xcova1olLg==/lib/arm64, /data/app/com.sizebiz.just.live.basketball-Rn8Kb-p0JpC_xcova1olLg==/base.apk!/lib/arm64-v8a, /system/lib64]]
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
       02-27 13:00:30.485 12645 12645 E AndroidRuntime: 	... 12 more
       02-27 13:00:30.487  2047  9545 W ActivityManager:   Force finishing activity com.sizebiz.just.live.basketball/.JustLiveBasketballActivity
       
  7. Rakhi Mitro 2019-02-27

    Hello, Thanks for sharing with us. Did you follow the suggested steps and get this error?
  8. Kerberos 2019-02-27

    Yes but result is same. Please help me. I can't solve this issue since 2 months.
  9. Sharif AbuDarda 2019-02-27

    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.
  10. Kerberos 2019-02-27

    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.
  11. Francisco Antonio Duran Ramirez 2019-02-28

    Hello. Good morning / afternoon. Adding more details about the issue related to the following message :
        failed: cannot locate symbol "_ZN8titanium13TypeConverter18javaLongToJsNumberEPN2v87IsolateEx" referenced by "/data/app/com.sizebiz.just.live.basketball-hM7GU3ITietnfQjIjr15hQ==/lib/arm64/libti.ga.so"...
        
    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.
        https://github.com/benbahrenburg/Ti.GA/pull/18
        
    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.
  12. Kerberos 2019-02-28

    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
  13. Andrea Vitale 2019-03-06

    Same issue here also on Android 8. Could you please provide a quick workaround? Our app is already in production :-(
  14. Kerberos 2019-03-06

    My app is already in production too. I am getting this issue since 2 months.
  15. Michael Gangolf 2019-03-06

    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 :)
  16. Kerberos 2019-03-07

    Thank you very much Michael Gangolf. Yes this ti.ga version is working.
  17. Kerberos 2019-03-08

    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.
  18. Gary Mathews 2019-03-12

    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.
  19. Luis F. Garcia 2019-04-25

    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.
  20. Luis F. Garcia 2019-04-27

    Hello again. This seems to be a known Android issue. Basically you just need to add the following to your ~/.profile or ~/.bash_profile:
        export _JAVA_OPTIONS="-Djava.net.preferIPv6Addresses=true"
        
    Please check my answer in [stackoverflow](https://stackoverflow.com/questions/54607804/application-failed-to-install-android-9-pie/) for more details.

JSON Source