Trying to create basic application using HERE Android Lite SDK - android

I am trying to run a basic example of an application with new Android Lite SDK from HERE and getting such error:
E/AndroidTangramPlatformBridge: parse
org.xmlpull.v1.XmlPullParserException: END_TAG expected (position:START_TAG (empty) <axis tag='wdth' stylevalue='100.0'>#279:51 in java.io.InputStreamReader#739274e)
at org.kxml2.io.KXmlParser.nextText(KXmlParser.java:2088)
at com.here.sdk.mapviewlite.FontFileParser.processDocument(Unknown Source:105)
at com.here.sdk.mapviewlite.FontFileParser.parse(Unknown Source:21)
at com.here.sdk.mapviewlite.FontFileParser.parse(Unknown Source:18)
at com.here.sdk.mapviewlite.AndroidTangramPlatformBridge.<init>(Unknown Source:33)
at com.here.sdk.mapviewlite.MapViewLite.onCreate(Unknown Source:6)
at com.here.hellomap.MainActivity.onCreate(MainActivity.java:46)
at android.app.Activity.performCreate(Activity.java:7458)
at android.app.Activity.performCreate(Activity.java:7448)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1286)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3409)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3614)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:86)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199)
at android.os.Handler.dispatchMessage(Handler.java:112)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
D/HwCustConnectivityManagerImpl: isBlockNetworkRequestByNonAis, INVALID_SUBSCRIPTION_ID
D/ActivityThread: add activity client record, r= ActivityRecord{d1ae1ac token=android.os.BinderProxy#853d260 {com.here.hellomap/com.here.hellomap.MainActivity}} token= android.os.BinderProxy#853d260
E/: [ZeroHung]zrhung_get_config: Get config failed for wp[0x0008]
D/ZrHung.AppEyeUiProbe: notify runnable to start.
I/HwSecImmHelper: mSecurityInputMethodService is null
D/HwAppInnerBoostImpl: set config for com.here.hellomap BOOST_FLAG=false REPORT_DURATION_CLICK=1000 REPORT_TIMES_CLICK=3 REPORT_DURATION_SLIDE=5000 REPORT_TIMES_SLIDE=16
D/OpenGLRenderer: HWUI Binary is enabled
W/HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
I/HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
D/HiTouch_PressGestureDetector: onAttached, package=com.here.hellomap, windowType=1, mHiTouchRestricted=true
E/analytics: [ERROR] analytics - Failed to get the authentication token: Authentication failed, error code: 1
E/analytics: [ERROR] analytics - Failed to get the authentication token: Authentication failed, error code: 1
[ERROR] analytics - Invalid access key
I/HwPhoneWindow: updateLayoutParamsColor false mSpecialSet=false, mForcedNavigationBarColor=false, navigationBarColor=ff000000, mNavBarShow=true, mIsFloating=false
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I see only a blank map on my HUAWEI P Smart (on Virtual device code runs normally).
Does anyone have an idea of how to solve it?

Please check authentication token for android Lite version. Also check for the permission java class that has to be correctly written. The accompanying example apps can be found on GitHub : https://github.com/heremaps/here-sdk-examples
To try out these examples, add your HERE credentials (access_key_id and access_key_secret) to the AndroidManifest.xml file, and add the HERE SDK to the libs folder.

Related

Kotlin Multiplatform + Sentry

I want to use Sentry for my Multiplatform Kotlin project.
Sentry for Kotlin Multiplatform
So I was trying to prepare the setup of Sentry with Kotlin Multiplatform.
I was following the guide, made a mavenLocal() build etc.
Now I wanted to add it to the project.
However, when starting my (Android) project, even before starting the onCreate() of the Application I get a crash stating:
Unable to get provider io.sentry.android.core.SentryInitProvider:
java.lang.IllegalArgumentException: DSN is required. Use empty string to disable SDK.
So to be clear this happens already when adding api("io.sentry:sentry-kotlin-multiplatform:0.0.1") to the dependencies. Long before the init call.
All I did was:
Configure shared build.gradle.kts and add
val commonMain by getting {
dependencies {
api("io.sentry:sentry-kotlin-multiplatform:0.0.1")
Adding the sample configuration
fun initializeSentry(context: Context) {
Sentry.init(context) { sentryOptions -> setDsnHere... }
}
and in the Android Application:
initializeSentry(this)
Then tried to run it. But I don't even get to the init call.
The configuration should be reached and the initializeSentry(this) block executed. (I can accept if it fails there but I don't even get that far.)
Instead the app fails stating
E/AndroidRuntime: FATAL EXCEPTION: main
Process: xyz, PID: 23056
java.lang.RuntimeException: Unable to get provider io.sentry.android.core.SentryInitProvider: java.lang.IllegalArgumentException: DSN is required. Use empty string to disable SDK.
at android.app.ActivityThread.installProvider(ActivityThread.java:7467)
...
even before anything else.
So the mere adding to the gradle file causes the crash already (even if the other code is commented out).
-------- Full Stack trace-------
java.lang.RuntimeException: Unable to get provider io.sentry.android.core.SentryInitProvider: java.lang.IllegalArgumentException: DSN is required. Use empty string to disable SDK.
at android.app.ActivityThread.installProvider(ActivityThread.java:7467)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6973)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6744)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.IllegalArgumentException: DSN is required. Use empty string to disable SDK.
at io.sentry.Sentry.initConfigurations(Sentry.java:201)
at io.sentry.Sentry.init(Sentry.java:170)
at io.sentry.Sentry.init(Sentry.java:118)
at io.sentry.android.core.SentryAndroid.init(SentryAndroid.java:87)
at io.sentry.android.core.SentryAndroid.init(SentryAndroid.java:56)
at io.sentry.android.core.SentryInitProvider.onCreate(SentryInitProvider.java:27)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2451)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2421)
at io.sentry.android.core.SentryInitProvider.attachInfo(SentryInitProvider.java:44)
at android.app.ActivityThread.installProvider(ActivityThread.java:7462)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6973) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6744) 
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loopOnce(Looper.java:201) 
at android.os.Looper.loop(Looper.java:288) 
at android.app.ActivityThread.main(ActivityThread.java:7872) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) 
Turns out the manual had forgotten to mention the auto configuration.
Add this line to your Manifest:
<meta-data android:name="io.sentry.auto-init" android:value="false" />
and proceed with the tutorial.
For Reference:
https://github.com/getsentry/sentry-kotlin-multiplatform/issues/45

Android Emulator SDK--30 is not working with AR application [Google sceneform sdk]

We are developing an AR application with google-sceneform sdk, the app is getting crashed on Android 11 (Real Device) after the successful launch. we are able to identify the plane and place an object but after some time it will crash.
So we are trying it on emulator sdk-30. But after running the application it shows Failed to create AR Session.
I have followed the whole steps provided by Google in this Link but it didn't work.
Tried all the steps with android studio 4.1 and SDK-30 with emulator version 30.2.6 which is not worked.
The normal hand sign for scanning the surface is also not shown.
But with SDK-27 it worked. We need the sdk-30 to be worked.
Q1: is the emulator failing issue is a known issue? did anyone faced this before?
This is the log for Emulator.
2020-12-28 16:38:58.742 7153-7153/com.quintar.myapplication E/StandardArFragment: Error: Failed to create AR session
com.google.ar.core.exceptions.UnavailableException
at com.google.ar.sceneform.ux.BaseArFragment.initializeSession(BaseArFragment.java:391)
at com.google.ar.sceneform.ux.BaseArFragment.onResume(BaseArFragment.java:338)
#### SKIPPING SOME LINES HERE ####
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: com.google.ar.core.exceptions.FatalException: Failed to launch installer.
at com.google.ar.core.p.b(InstallService.java:53)
at com.google.ar.core.p.a(InstallService.java:40)
at com.google.ar.core.InstallActivity.startInstaller(InstallActivity.java:116)
at com.google.ar.core.InstallActivity.access$200(InstallActivity.java:125)
at com.google.ar.core.k.onClick(InstallActivity.java:3)
#### SKIPPING SOME LINES HERE ####
at android.app.ActivityThread.main(ActivityThread.java:7656) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.google.ar.core }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2067)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1727)
Q2: it is very much appreciatable if anyone can help me to fix the on Android 11 crash issue.
this is crash log on Android 11 (Real device)
2020-12-21 14:19:01.868 14629-14629/? A/DEBUG: Abort message: 'Scudo ERROR: invalid chunk state when
deallocating address 0x0073944b2ea0
'
2020-12-21 14:19:02.415 14629-14629/? A/DEBUG: #03 pc 00000000000431bc
/apex/com.android.runtime/lib64/bionic/libc.so
(scudo::reportInvalidChunkState(scudo::AllocatorAction, void*)+76) (BuildId:
95f68a34fdf7b31f42d3f811d5d88f58)
2020-12-21 14:19:03.665 1091-6178/? E/AudioSystem: invalid attributes { Content type:
AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: -1 Flags: 0x800 Tags: } when
converting to stream
2020-12-21 14:19:06.839 895-1615/? E/soundtrigger: audio_extn_sound_trigger_update_stream_status:
invalid input device 0x0, for event 2
In file 'YourProject/app/build.gradle' set the next dependecies for Android Target API 30 with the last of AR Sceneform Library:
android {
defaultConfig {
...
targetSdkVersion 30
...
}
}
dependencies {
...
api "com.google.ar.sceneform:core:1.17.1"
api "com.google.ar.sceneform.ux:sceneform-ux:1.17.1"
api "com.google.ar:core:1.22.0"
...
}

Instant App not loading from "Try Now" button

I have just published my Instant App (IA) to the production channel but experiencing issues with the "Try Now" functionality. The app downloads, attempts to open but then crashes with the below errors appearing in the logs. The default URL for the IA is brant.app/oceanlife/instant and following the download, navigating to this URL correctly loads the IA.
The experience from Try Now though appears broken...
2019-05-03 11:49:15.896 1146-3755/? E/ActivityManager: applyOptionsLocked: Unknown animationType=0
2019-05-03 11:49:15.904 20657-20806/? E/libc: Access denied finding property "vendor.debug.egl.profiler"
2019-05-03 11:49:16.025 20657-20831/? E/libc: Access denied finding property "ro.vendor.graphics.memory"
2019-05-03 11:49:16.044 20657-20831/? E/libc: Access denied finding property "vendor.gralloc.enable_ahardware_buffer"
2019-05-03 11:49:17.250 24917-20500/? E/ctxmgr: [AppIntervalImpl]closeInterval: ongoing [CONTEXT service_id=47 ]
com.android.volley.VolleyError: Unable to obtain auth token - is the device online?
at eme.a(:com.google.android.gms#16091037#16.0.91 (100400-244116403):31)
at eha.run(:com.google.android.gms#16091037#16.0.91 (100400-244116403):2)
at egy.handleMessage(:com.google.android.gms#16091037#16.0.91 (100400-244116403):3)
at rlu.run(:com.google.android.gms#16091037#16.0.91 (100400-244116403):8)
at rmf.b(:com.google.android.gms#16091037#16.0.91 (100400-244116403):32)
at rmf.run(:com.google.android.gms#16091037#16.0.91 (100400-244116403):18)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at rsc.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
2019-05-03 11:49:18.061 862-21776/? E/installd: Failed to delete /data/app/vmdl2072380660.tmp: No such file or directory
2019-05-03 11:49:18.188 20847-20847/? E/com.oceanlife: Not starting debugger since process cannot load the jdwp agent.
2019-05-03 11:49:18.290 20847-20863/? E/libc: Access denied finding property "vendor.debug.egl.profiler"
2019-05-03 11:49:18.358 1991-2008/? E/Icon: Unable to find pkg=com.oceanlife for icon Icon(typ=RESOURCE pkg=com.oceanlife id=0x7f070084)
android.content.pm.PackageManager$NameNotFoundException: com.oceanlife
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:395)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:377)
at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:345)
at android.graphics.drawable.Icon.loadDrawable(Icon.java:313)
at android.service.notification.NotificationListenerService.createLegacyIconExtras(NotificationListenerService.java:1172)
at android.service.notification.NotificationListenerService.access$100(NotificationListenerService.java:94)
at android.service.notification.NotificationListenerService$NotificationListenerWrapper.onNotificationPosted(NotificationListenerService.java:1234)
at android.service.notification.INotificationListener$Stub.onTransact(INotificationListener.java:72)
at android.os.Binder.execTransact(Binder.java:731)
2019-05-03 11:49:18.358 12768-12780/? E/Icon: Unable to find pkg=com.oceanlife for icon Icon(typ=RESOURCE pkg=com.oceanlife id=0x7f070084)
android.content.pm.PackageManager$NameNotFoundException: com.oceanlife
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:395)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:377)
at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:345)
at android.graphics.drawable.Icon.loadDrawable(Icon.java:313)
at android.service.notification.NotificationListenerService.createLegacyIconExtras(NotificationListenerService.java:1172)
at android.service.notification.NotificationListenerService.access$100(NotificationListenerService.java:94)
at android.service.notification.NotificationListenerService$NotificationListenerWrapper.onNotificationPosted(NotificationListenerService.java:1234)
at android.service.notification.INotificationListener$Stub.onTransact(INotificationListener.java:72)
at android.os.Binder.execTransact(Binder.java:731)
2019-05-03 11:49:18.359 13290-13309/? E/Icon: Unable to find pkg=com.oceanlife for icon Icon(typ=RESOURCE pkg=com.oceanlife id=0x7f070084)
android.content.pm.PackageManager$NameNotFoundException: com.oceanlife
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:395)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:377)
at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:345)
at android.graphics.drawable.Icon.loadDrawable(Icon.java:313)
at android.service.notification.NotificationListenerService.createLegacyIconExtras(NotificationListenerService.java:1172)
at android.service.notification.NotificationListenerService.access$100(NotificationListenerService.java:94)
at android.service.notification.NotificationListenerService$NotificationListenerWrapper.onNotificationPosted(NotificationListenerService.java:1234)
at android.service.notification.INotificationListener$Stub.onTransact(INotificationListener.java:72)
at android.os.Binder.execTransact(Binder.java:731)
2019-05-03 11:49:18.360 28965-17990/? E/Icon: Unable to find pkg=com.oceanlife for icon Icon(typ=RESOURCE pkg=com.oceanlife id=0x7f070084)
android.content.pm.PackageManager$NameNotFoundException: com.oceanlife
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:395)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:377)
at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:345)
at android.graphics.drawable.Icon.loadDrawable(Icon.java:313)
at android.service.notification.NotificationListenerService.createLegacyIconExtras(NotificationListenerService.java:1172)
at android.service.notification.NotificationListenerService.access$100(NotificationListenerService.java:94)
at android.service.notification.NotificationListenerService$NotificationListenerWrapper.onNotificationPosted(NotificationListenerService.java:1234)
at android.service.notification.INotificationListener$Stub.onTransact(INotificationListener.java:72)
at android.os.Binder.execTransact(Binder.java:731)
What could be the reason for "Try Now" not working?
The stacktraces posted are warnings happening outside the app, and shouldn't cause issues in the app itself. While the app isn't crashing, it appears to be just finishing itself.
Google Play may add some query parameters, particularly for instant apps. You may get an extra referrer query parameter that indicates where the user is coming from (Same format as the install referrer), which your parsing may not expect from instant app URLs.

com.google.android.apps.gcs causes app to crash on launch in Emulator

I have an Android 9 Emulator in Android Studio, and I'm trying to run my app on it.
However app crashes on launch, and it keeps logging this lengthy error:
2018-10-08 11:48:28.693 18207-18309/? E/aise: Phenotype API error. Event a <
a: ""
b: 0
d: 1
e: "com.google.android.apps.gcs"
f: 0
g: 0
h: 0
i: ""
j: ""
>
d: 219
g: # bpkh#f5738319
, EventCode: 12
[CONTEXT service_id=51 ]
aira: 29503
at aisl.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):36)
at aisk.b(:com.google.android.gms#13280040#13.2.80 (100700-211705629):5)
at aise.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):85)
at aise.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):77)
at wsj.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):29)
at bdmu.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):2)
at pyx.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at qet.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
2018-10-08 11:48:28.693 18207-18309/? E/AsyncOperation: serviceID=51, operation=GetCommittedConfigurationOperationCall
OperationException[Status{statusCode=unknown status code: 29503, resolution=null}]
at aise.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):95)
at aise.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):77)
at wsj.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):29)
at bdmu.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):2)
at pyx.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at qet.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
2018-10-08 11:48:28.694 18207-18250/? E/NetRec: [530] afrj.a: Could not retrieve server token for package com.google.android.apps.gcs
java.util.concurrent.ExecutionException: otp: 29503:
at aptv.b(:com.google.android.gms#13280040#13.2.80 (100700-211705629):2)
at aptv.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):28)
at afrj.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):1)
at afrj.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):4)
at afrg.getHeaders(:com.google.android.gms#13280040#13.2.80 (100700-211705629):2)
at com.android.volley.toolbox.HttpClientStack.performRequest(:com.google.android.gms#13280040#13.2.80 (100700-211705629):6)
at psm.performRequest(:com.google.android.gms#13280040#13.2.80 (100700-211705629):1)
at bmj.executeRequest(:com.google.android.gms#13280040#13.2.80 (100700-211705629):1)
at com.android.volley.toolbox.BasicNetwork.performRequest(:com.google.android.gms#13280040#13.2.80 (100700-211705629):5)
at psn.performRequest(:com.google.android.gms#13280040#13.2.80 (100700-211705629):14)
at com.android.volley.NetworkDispatcher.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):6)
at com.android.volley.NetworkDispatcher.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):2)
Caused by: otp: 29503:
at ozf.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):4)
at aipu.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):5)
at aisk.a(Unknown Source:3)
at wsg.a(:com.google.android.gms#13280040#13.2.80 (100700-211705629):5)
at wsj.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):37)
at bdmu.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):2)
at pyx.run(:com.google.android.gms#13280040#13.2.80 (100700-211705629):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at qet.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
I've seen this and this, but disabling microphone permissions and Google search app haven't solved my problem.
What should I do to fix this error?
I have this problem when I am developing a map application with a locate part in it.
It seems work fine that I could see the GPS icon on the top of the screen, however, it can't move the 'camera' to my real location.
From the log category, I found this error message 'Could not retrieve server token for package com.google.android.apps.gcs' which I thought could be the most likely reason that I couldn't get it through.
I've tried some small changes on project configuration until I tried to downgrade the compileSdkVersion to lower level. For this project, I changed it from 28 to 27. (My mobile phone is equipped with Android 9.)
Then it works.
Hope this could help you.

amazon gamecircle login not working

I'm trying to get the Amazon GameCircle to work for leaderboards and achievements.
Here's what I did:
I followed the instructions on how to create a game configuration by extract the md5 hash from the keystore. (I only have one keystore)
I used the game manifest provided by the unity gamecircle package and replaced the package name.
I downloaded the api_key.txt and placed it in the assets folder.
and I have security profile attached.
GameCircle works using the apk when I install it directly, but doesn't work when downloaded through the amazon app store.
Is there anything I forgot or anything else I could try?
here's the logcat messages regarding gamecircle:
D/GameCircleClient(21312): SDK Version: 2.4.3
D/com.amazon.identity.auth.map.device.utils.MAPLog.PII(21312): Extracting verison incremental:<obscured>
D/com.amazon.identity.auth.map.device.utils.MAPLog.PII(21312): Incremental version '%s' was in invalid format.:<obscured>
D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.PII(21312): AmazonAuthorizationManager:sdkVer=2.0.1 libVer=3.5.1:<obscured>
I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(21312): Options bundle is null
I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(21312): getAppInfo : packageName=com.Senshu.HanabiParty
I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(21312): getAppInfoFromAPIKey : packageName=com.Senshu.HanabiParty
I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(21312): Finding API Key for com.Senshu.HanabiParty
I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(21312): Attempting to parse API Key from assets directory
I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): Begin decoding API Key for packageName=com.Senshu.HanabiParty
I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): getKeyParts for packageName=com.Senshu.HanabiParty
D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(21312): APIKey:<obscured>
I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): verifySignature for packageName=com.Senshu.HanabiParty
I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): verifySignature Sha256 for packageName=com.Senshu.HanabiParty
I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): verifyPayload for packageName=com.Senshu.HanabiParty
W/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): Failed to decode: No value for appsig
W/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): Unable to decode APIKEy for pkg=com.Senshu.HanabiParty
E/GameCircleClient(21312): Unable to read api key. GameCircle requires an api key to be included in 'assets/api_key.txt'. GameCircle will not initialize.
E/GameCircleClient(21312): java.lang.IllegalArgumentException: Invalid API Key
E/GameCircleClient(21312): at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.<init>(AmazonAuthorizationManager.java:133)
E/GameCircleClient(21312): at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:144)
E/GameCircleClient(21312): at com.amazon.ags.api.unity.AmazonGamesClientProxyImpl$1.run(AmazonGamesClientProxyImpl.java:68)
E/GameCircleClient(21312): at android.os.Handler.handleCallback(Handler.java:739)
E/GameCircleClient(21312): at android.os.Handler.dispatchMessage(Handler.java:95)
E/GameCircleClient(21312): at android.os.Looper.loop(Looper.java:145)
E/GameCircleClient(21312): at android.app.ActivityThread.main(ActivityThread.java:6837)
E/GameCircleClient(21312): at java.lang.reflect.Method.invoke(Native Method)
E/GameCircleClient(21312): at java.lang.reflect.Method.invoke(Method.java:372)
E/GameCircleClient(21312): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
E/GameCircleClient(21312): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
E/Whispersync(21312): Whispersync client has not been initialized. Please call AmazonGames.initialize()
E/WS_WhispersyncClientProxyImpl(21312): Whispersync client is null. Cannot set event listener. Please call initialize for AmazonGames.
W/ActivityManager( 3517): getRunningAppProcesses: caller 10605 does not hold REAL_GET_TASKS; limiting output
I/Unity (21312): AmazonGameCircle: GameCircleManager - serviceNotReady
I/Unity (21312):
I/Unity (21312): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
I/Unity (21312):
I/Unity (21312): Amazon GameCircle Service is not ready
I/Unity (21312):
I/Unity (21312): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
I have a similar error where the APIKeyDecoder could not parse my application signature. It fixes by upgrading the login-with-amason-sdk.jar to the latest version manually since they have not published maven coordinates yet. Also notice that now they dont use md5 signature, not even sha1, they using sha256.

Categories

Resources