Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5991] 7.5.0 Titanium SDK - Android 8.0 - No virtual method getMobileId()

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2018-12-05T09:37:41.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterAndreas Pingas
AssigneeShak Hossain
Created2018-10-26T07:45:55.000+0000
Updated2018-12-05T09:37:41.000+0000

Description

I have run the app using the latest update 7.5.0 and i have found the following error that appears only on Android 8.0 and above: Google Pixel (sailfish) - Android 8.0 Samsung Galaxy S9 (US) (starqlteue) - Android 8.0 Google Pixel 2 (walleye) - Android 9 Sony Xperia XZ1 (G8441) - Android 8.0 Google Pixel 2 (walleye) - Android 8.1 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:353) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) at java.util.concurrent.FutureTask.setException(FutureTask.java:252) at java.util.concurrent.FutureTask.run(FutureTask.java:271) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.NoSuchMethodError: No virtual method getMobileId()Ljava/lang/String; in class Lorg/appcelerator/titanium/util/TiPlatformHelper; or its super classes (declaration of 'org.appcelerator.titanium.util.TiPlatformHelper' appears in /data/app/com..app-TOUtitoXCUYBg9f84h6nEg==/base.apk!classes2.dex) at com.appcelerator.aps.CloudpushModuleImplementation$10.getMobileId(CloudpushModuleImplementation.java:251) at com.appcelerator.aps.CCPushService.injectAnalytics(CCPushService.java:124) at com.appcelerator.aps.CCPushService.getGCMSenderId(CCPushService.java:155) at com.appcelerator.aps.CCPushService.access$000(CCPushService.java:35) at com.appcelerator.aps.CCPushService$1.doInBackground(CCPushService.java:97) at com.appcelerator.aps.CCPushService$1.doInBackground(CCPushService.java:89) at android.os.AsyncTask$2.call(AsyncTask.java:333) at java.util.concurrent.FutureTask.run(FutureTask.java:266) ... 4 more

Comments

  1. Sharif AbuDarda 2018-10-26

    Hello, Please provide a sample stand-alone code for us to test the issue in Android 8 with the latest SDK. Thanks.
  2. Andreas Pingas 2018-10-27

  3. Sebastian Klaus 2018-11-16

    How can I fix it? in the 7.5.0.GA the issue still occurs
  4. Sharif AbuDarda 2018-11-17

    Hello, Please send the sample stand-alone code for us to test the issue in Android 8 with the latest SDK. We can't provide support unless we are able to reproduce the issue on our end. Thanks.
  5. Andreas Pingas 2018-11-29

    With the official release of 7.5.0.GA it works properly. It needs the ti.cloudpush 5.2.0

JSON Source