Open samcsyu opened 2 years ago
Hi @samcsyu do you still have this issue? Do you see any errors in logs? I have tried to reproduce this on Android 12 emulator but could not.
Hi @veronikapetruskova, I still have the issue when running on the Android phone with Android 12. At line 339 to 357 of RemotePlayerActivity.java or depicted below, onConnected() or onFailure() callbacks never get called after calling SpotifyAppRemote.connect().
SpotifyAppRemote.connect(
getApplicationContext(),
new ConnectionParams.Builder(CLIENT_ID)
.setRedirectUri(REDIRECT_URI)
.showAuthView(showAuthView)
.build(),
new Connector.ConnectionListener() {
@Override
public void onConnected(SpotifyAppRemote spotifyAppRemote) {
mSpotifyAppRemote = spotifyAppRemote;
RemotePlayerActivity.this.onConnected();
}
@Override
public void onFailure(Throwable error) {
logError(error);
RemotePlayerActivity.this.onDisconnected();
}
});
Below is the full log.
2022-04-11 14:32:01.309 2896-2896/? I/.appremote.dem: Late-enabling -Xcheck:jni
2022-04-11 14:32:01.333 2896-2896/? D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
2022-04-11 14:32:01.360 2896-2913/? D/AppScoutStateMachine: 2896-ScoutStateMachinecreated
2022-04-11 14:32:01.357 2896-2896/? W/re-initialized>: type=1400 audit(0.0:23281): avc: granted { execute } for path="/data/data/com.spotify.android.appremote.demo/code_cache/startup_agents/50cdcce7-agent.so" dev="dm-10" ino=87963 scontext=u:r:untrusted_app:s0:c114,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c114,c258,c512,c768 tclass=file app=com.spotify.android.appremote.demo
2022-04-11 14:32:01.368 2896-2896/? V/studio.deploy: Startup agent attached to VM
2022-04-11 14:32:01.368 2896-2896/? V/studio.deploy: No existing instrumentation found. Loading instrumentation from instruments-88564b4d.jar
2022-04-11 14:32:01.369 2896-2896/? W/.appremote.dem: DexFile /data/data/com.spotify.android.appremote.demo/code_cache/.studio/instruments-88564b4d.jar is in boot class path but is not in a known location
2022-04-11 14:32:01.371 2896-2896/? V/studio.deploy: Applying transforms with cached classes
2022-04-11 14:32:01.378 2896-2896/? W/.appremote.dem: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
2022-04-11 14:32:01.378 2896-2896/? W/.appremote.dem: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
2022-04-11 14:32:01.381 2896-2896/? D/CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10626; state: ENABLED
2022-04-11 14:32:01.389 2896-2896/? W/ActivityThread: Application com.spotify.android.appremote.demo is waiting for the debugger on port 8100...
2022-04-11 14:32:01.389 2896-2896/? I/System.out: Sending WAIT chunk
2022-04-11 14:32:02.390 2896-2896/com.spotify.android.appremote.demo I/System.out: Debugger has connected
2022-04-11 14:32:02.391 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle...
2022-04-11 14:32:02.592 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle...
2022-04-11 14:32:02.793 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle...
2022-04-11 14:32:02.994 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle...
2022-04-11 14:32:03.196 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle...
2022-04-11 14:32:03.380 2896-2909/com.spotify.android.appremote.demo W/System: A resource failed to call close.
2022-04-11 14:32:03.397 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle...
2022-04-11 14:32:03.600 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle...
2022-04-11 14:32:03.803 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle...
2022-04-11 14:32:04.008 2896-2896/com.spotify.android.appremote.demo I/System.out: debugger has settled (1477)
2022-04-11 14:32:04.128 2896-2896/com.spotify.android.appremote.demo I/Perf: Connecting to perf service.
2022-04-11 14:32:04.139 2896-2896/com.spotify.android.appremote.demo V/GraphicsEnvironment: ANGLE Developer option for 'com.spotify.android.appremote.demo' set to: 'default'
2022-04-11 14:32:04.139 2896-2896/com.spotify.android.appremote.demo V/GraphicsEnvironment: Updatable production driver is not supported on the device.
2022-04-11 14:32:04.146 2896-2896/com.spotify.android.appremote.demo I/ForceDarkHelperStubImpl: initialize for com.spotify.android.appremote.demo , ForceDarkOrigin
2022-04-11 14:32:04.148 2896-2896/com.spotify.android.appremote.demo D/OpenGLRenderer: JNI_OnLoad success
2022-04-11 14:32:04.148 2896-2896/com.spotify.android.appremote.demo I/MiuiForceDarkConfig: setConfig density:2.750000, mainRule:0, secondaryRule:0, tertiaryRule:0
2022-04-11 14:32:04.162 2896-2896/com.spotify.android.appremote.demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2022-04-11 14:32:04.166 2896-2896/com.spotify.android.appremote.demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2022-04-11 14:32:04.208 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor longMsg : seq=3 plan=14:32:01.349 late=31ms wall=2807ms running=198ms runnable=8ms binder=9ms h=android.app.ActivityThread$H w=110 procState=-1
2022-04-11 14:32:04.901 2896-2896/com.spotify.android.appremote.demo D/ViewScrollStubImpl: the value of ScrollFrictionRes is: 0.03
2022-04-11 14:32:04.919 2896-2896/com.spotify.android.appremote.demo D/IS_CTS_MODE: false
2022-04-11 14:32:04.919 2896-2896/com.spotify.android.appremote.demo D/MULTI_WINDOW_SWITCH_ENABLED: false
2022-04-11 14:32:04.921 2896-2896/com.spotify.android.appremote.demo D/IS_CTS_MODE: false
2022-04-11 14:32:04.921 2896-2896/com.spotify.android.appremote.demo D/MULTI_WINDOW_SWITCH_ENABLED: false
2022-04-11 14:32:04.937 2896-2896/com.spotify.android.appremote.demo D/DecorView[]: getWindowModeFromSystem windowmode is 1
2022-04-11 14:32:05.473 2896-2896/com.spotify.android.appremote.demo D/CompatibilityChangeReporter: Compat change id reported: 171228096; UID 10626; state: ENABLED
2022-04-11 14:32:08.879 2896-2915/com.spotify.android.appremote.demo W/MIUIScout App: Enter APP_SCOUT_WARNING State
2022-04-11 14:32:08.902 2896-2934/com.spotify.android.appremote.demo W/MIUIScout App: Event:APP_SCOUT_WARNING Thread:main backtrace:
at com.spotify.sdk.demo.RemotePlayerActivity.connect(RemotePlayerActivity.java:337)
at com.spotify.sdk.demo.RemotePlayerActivity.onConnectAndAuthorizedClicked(RemotePlayerActivity.java:332)
at com.spotify.sdk.demo.RemotePlayerActivity.onCreate(RemotePlayerActivity.java:274)
at android.app.Activity.performCreate(Activity.java:8178)
at android.app.Activity.performCreate(Activity.java:8146)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1330)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3700)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3894)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2260)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8138)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)
2022-04-11 14:32:08.912 2896-2896/com.spotify.android.appremote.demo I/libc: Requested dump for tid 2896 (.appremote.demo)
2022-04-11 14:32:10.637 2896-2896/com.spotify.android.appremote.demo W/Activity: PerfMonitor: Slow Operation: Activity com.spotify.android.appremote.demo/com.spotify.sdk.demo.RemotePlayerActivity onCreate took 5772ms
2022-04-11 14:32:10.670 2896-2942/com.spotify.android.appremote.demo D/SPOTIFY_APP_REMOTE: Start remote client
2022-04-11 14:32:10.698 2896-2942/com.spotify.android.appremote.demo D/SPOTIFY_APP_REMOTE: Connecting to Spotify service
2022-04-11 14:32:10.741 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor longMsg : seq=4 plan=14:32:01.351 late=2857ms wall=6519ms running=1442ms runnable=22ms binder=29ms h=android.app.ActivityThread$H w=159 procState=-1
2022-04-11 14:32:10.743 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor looperActivity : package=com.spotify.android.appremote.demo/com.spotify.sdk.demo.RemotePlayerActivity time=6519ms latency=2857ms running=1442ms procState=-1 historyMsgCount=3 (msgIndex=3 wall=2807ms seq=3 running=198ms runnable=8ms binder=9ms late=31ms h=android.app.ActivityThread$H w=110)
2022-04-11 14:32:10.746 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor looperActivity : package=com.spotify.android.appremote.demo/com.spotify.sdk.demo.RemotePlayerActivity time=1ms latency=9391ms running=0ms procState=-1 historyMsgCount=4 (msgIndex=3 wall=2807ms seq=3 running=198ms runnable=8ms binder=9ms late=31ms h=android.app.ActivityThread$H w=110) (msgIndex=4 wall=6519ms seq=4 running=1442ms runnable=22ms binder=29ms late=2857ms h=android.app.ActivityThread$H w=159)
2022-04-11 14:32:10.752 2896-2896/com.spotify.android.appremote.demo D/SPOTIFY_APP_REMOTE: Spotify service connected
2022-04-11 14:32:11.111 2896-2925/com.spotify.android.appremote.demo I/AdrenoGLES-0: QUALCOMM build : 9b824c0bed, I6c7bff0fbd
Build Date : 10/09/21
OpenGL ES Shader Compiler Version: EV031.32.02.15
Local Branch :
Remote Branch :
Remote Branch :
Reconstruct Branch :
2022-04-11 14:32:11.111 2896-2925/com.spotify.android.appremote.demo I/AdrenoGLES-0: Build Config : S P 10.0.7 AArch64
2022-04-11 14:32:11.111 2896-2925/com.spotify.android.appremote.demo I/AdrenoGLES-0: Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
2022-04-11 14:32:11.126 2896-2925/com.spotify.android.appremote.demo I/AdrenoGLES-0: PFP: 0x016ee190, ME: 0x00000000
2022-04-11 14:32:11.148 2896-2925/com.spotify.android.appremote.demo D/hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
2022-04-11 14:32:11.379 2896-2915/com.spotify.android.appremote.demo W/AppScoutStateMachine: Enter APP_SCOUT_SLOW state
2022-04-11 14:32:11.380 2896-2925/com.spotify.android.appremote.demo E/.appremote.dem: open libmigui.so failed! dlopen - dlopen failed: library "libmigui.so" not found
2022-04-11 14:32:11.387 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor doFrame : time=632ms vsyncFrame=0 latency=37ms procState=-1 historyMsgCount=7 (msgIndex=1 wall=6519ms seq=4 running=1442ms runnable=22ms binder=29ms late=2857ms h=android.app.ActivityThread$H w=159)
2022-04-11 14:32:11.400 2896-2896/com.spotify.android.appremote.demo I/libc: Requested dump for tid 2896 (.appremote.demo)
2022-04-11 14:32:11.579 2896-2896/com.spotify.android.appremote.demo D/DecorView[]: onWindowFocusChanged hasWindowFocus true
2022-04-11 14:32:11.806 2896-2912/com.spotify.android.appremote.demo I/OpenGLRenderer: Davey! duration=9223320588370ms; Flags=0, FrameTimelineVsyncId=599947, IntendedVsync=51448484593637, Vsync=51448484593637, InputEventId=0, HandleInputStart=51448494443183, AnimationStart=51448494473339, PerformTraversalsStart=51448500785475, DrawStart=51448502332506, FrameDeadline=51448517926969, FrameInterval=51448494345370, FrameStartTime=16666666, SyncQueued=51448515271152, SyncStart=51448515325943, IssueDrawCommandsStart=51448515409641, SwapBuffers=51448516098443, FrameCompleted=9223372036854775807, DequeueBufferDuration=14375, QueueBufferDuration=495781, GpuCompleted=9223372036854775807, SwapBuffersCompleted=51448516878339, DisplayPresentTime=7310014087021199603,
2022-04-11 14:32:11.889 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2716
2022-04-11 14:32:11.892 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.897 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.899 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.901 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.905 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.907 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.911 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.912 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.915 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2716
2022-04-11 14:32:11.916 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.918 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.919 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.920 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.922 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.924 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.925 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.926 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.927 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.929 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.930 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.931 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.933 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.934 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.935 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.937 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.938 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.939 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.940 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.942 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.944 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.945 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.950 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.952 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719
2022-04-11 14:32:11.953 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.955 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719
2022-04-11 14:32:11.957 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2716
2022-04-11 14:32:11.958 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719
2022-04-11 14:32:11.960 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719
2022-04-11 14:32:11.963 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719
2022-04-11 14:32:11.964 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719
2022-04-11 14:32:11.966 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719
2022-04-11 14:32:11.967 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719
2022-04-11 14:32:11.968 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719
2022-04-11 14:32:11.970 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719
It has a lot of warnings, but not sure if above warning / error duplicated below are related.
2022-04-11 14:32:08.879 2896-2915/com.spotify.android.appremote.demo W/MIUIScout App: Enter APP_SCOUT_WARNING State
2022-04-11 14:32:08.902 2896-2934/com.spotify.android.appremote.demo W/MIUIScout App: Event:APP_SCOUT_WARNING Thread:main backtrace:
at com.spotify.sdk.demo.RemotePlayerActivity.connect(RemotePlayerActivity.java:337)
at com.spotify.sdk.demo.RemotePlayerActivity.onConnectAndAuthorizedClicked(RemotePlayerActivity.java:332)
at com.spotify.sdk.demo.RemotePlayerActivity.onCreate(RemotePlayerActivity.java:274)
at android.app.Activity.performCreate(Activity.java:8178)
at android.app.Activity.performCreate(Activity.java:8146)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1330)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3700)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3894)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2260)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8138)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)
2022-04-11 14:18:09.860 1256-1336/com.spotify.android.appremote.demo E/.appremote.dem: open libmigui.so failed! dlopen - dlopen failed: library "libmigui.so" not found
Hi @veronikapetruskova, I still have the issue when running on the Android phone with Android 12. At line 339 to 357 of RemotePlayerActivity.java or depicted below, onConnected() or onFailure() callbacks never get called after calling SpotifyAppRemote.connect().
SpotifyAppRemote.connect( getApplicationContext(), new ConnectionParams.Builder(CLIENT_ID) .setRedirectUri(REDIRECT_URI) .showAuthView(showAuthView) .build(), new Connector.ConnectionListener() { @Override public void onConnected(SpotifyAppRemote spotifyAppRemote) { mSpotifyAppRemote = spotifyAppRemote; RemotePlayerActivity.this.onConnected(); } @Override public void onFailure(Throwable error) { logError(error); RemotePlayerActivity.this.onDisconnected(); } });
Below is the full log.
2022-04-11 14:32:01.309 2896-2896/? I/.appremote.dem: Late-enabling -Xcheck:jni 2022-04-11 14:32:01.333 2896-2896/? D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument 2022-04-11 14:32:01.360 2896-2913/? D/AppScoutStateMachine: 2896-ScoutStateMachinecreated 2022-04-11 14:32:01.357 2896-2896/? W/re-initialized>: type=1400 audit(0.0:23281): avc: granted { execute } for path="/data/data/com.spotify.android.appremote.demo/code_cache/startup_agents/50cdcce7-agent.so" dev="dm-10" ino=87963 scontext=u:r:untrusted_app:s0:c114,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c114,c258,c512,c768 tclass=file app=com.spotify.android.appremote.demo 2022-04-11 14:32:01.368 2896-2896/? V/studio.deploy: Startup agent attached to VM 2022-04-11 14:32:01.368 2896-2896/? V/studio.deploy: No existing instrumentation found. Loading instrumentation from instruments-88564b4d.jar 2022-04-11 14:32:01.369 2896-2896/? W/.appremote.dem: DexFile /data/data/com.spotify.android.appremote.demo/code_cache/.studio/instruments-88564b4d.jar is in boot class path but is not in a known location 2022-04-11 14:32:01.371 2896-2896/? V/studio.deploy: Applying transforms with cached classes 2022-04-11 14:32:01.378 2896-2896/? W/.appremote.dem: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled. 2022-04-11 14:32:01.378 2896-2896/? W/.appremote.dem: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled. 2022-04-11 14:32:01.381 2896-2896/? D/CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10626; state: ENABLED 2022-04-11 14:32:01.389 2896-2896/? W/ActivityThread: Application com.spotify.android.appremote.demo is waiting for the debugger on port 8100... 2022-04-11 14:32:01.389 2896-2896/? I/System.out: Sending WAIT chunk 2022-04-11 14:32:02.390 2896-2896/com.spotify.android.appremote.demo I/System.out: Debugger has connected 2022-04-11 14:32:02.391 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle... 2022-04-11 14:32:02.592 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle... 2022-04-11 14:32:02.793 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle... 2022-04-11 14:32:02.994 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle... 2022-04-11 14:32:03.196 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle... 2022-04-11 14:32:03.380 2896-2909/com.spotify.android.appremote.demo W/System: A resource failed to call close. 2022-04-11 14:32:03.397 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle... 2022-04-11 14:32:03.600 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle... 2022-04-11 14:32:03.803 2896-2896/com.spotify.android.appremote.demo I/System.out: waiting for debugger to settle... 2022-04-11 14:32:04.008 2896-2896/com.spotify.android.appremote.demo I/System.out: debugger has settled (1477) 2022-04-11 14:32:04.128 2896-2896/com.spotify.android.appremote.demo I/Perf: Connecting to perf service. 2022-04-11 14:32:04.139 2896-2896/com.spotify.android.appremote.demo V/GraphicsEnvironment: ANGLE Developer option for 'com.spotify.android.appremote.demo' set to: 'default' 2022-04-11 14:32:04.139 2896-2896/com.spotify.android.appremote.demo V/GraphicsEnvironment: Updatable production driver is not supported on the device. 2022-04-11 14:32:04.146 2896-2896/com.spotify.android.appremote.demo I/ForceDarkHelperStubImpl: initialize for com.spotify.android.appremote.demo , ForceDarkOrigin 2022-04-11 14:32:04.148 2896-2896/com.spotify.android.appremote.demo D/OpenGLRenderer: JNI_OnLoad success 2022-04-11 14:32:04.148 2896-2896/com.spotify.android.appremote.demo I/MiuiForceDarkConfig: setConfig density:2.750000, mainRule:0, secondaryRule:0, tertiaryRule:0 2022-04-11 14:32:04.162 2896-2896/com.spotify.android.appremote.demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2022-04-11 14:32:04.166 2896-2896/com.spotify.android.appremote.demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2022-04-11 14:32:04.208 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor longMsg : seq=3 plan=14:32:01.349 late=31ms wall=2807ms running=198ms runnable=8ms binder=9ms h=android.app.ActivityThread$H w=110 procState=-1 2022-04-11 14:32:04.901 2896-2896/com.spotify.android.appremote.demo D/ViewScrollStubImpl: the value of ScrollFrictionRes is: 0.03 2022-04-11 14:32:04.919 2896-2896/com.spotify.android.appremote.demo D/IS_CTS_MODE: false 2022-04-11 14:32:04.919 2896-2896/com.spotify.android.appremote.demo D/MULTI_WINDOW_SWITCH_ENABLED: false 2022-04-11 14:32:04.921 2896-2896/com.spotify.android.appremote.demo D/IS_CTS_MODE: false 2022-04-11 14:32:04.921 2896-2896/com.spotify.android.appremote.demo D/MULTI_WINDOW_SWITCH_ENABLED: false 2022-04-11 14:32:04.937 2896-2896/com.spotify.android.appremote.demo D/DecorView[]: getWindowModeFromSystem windowmode is 1 2022-04-11 14:32:05.473 2896-2896/com.spotify.android.appremote.demo D/CompatibilityChangeReporter: Compat change id reported: 171228096; UID 10626; state: ENABLED 2022-04-11 14:32:08.879 2896-2915/com.spotify.android.appremote.demo W/MIUIScout App: Enter APP_SCOUT_WARNING State 2022-04-11 14:32:08.902 2896-2934/com.spotify.android.appremote.demo W/MIUIScout App: Event:APP_SCOUT_WARNING Thread:main backtrace: at com.spotify.sdk.demo.RemotePlayerActivity.connect(RemotePlayerActivity.java:337) at com.spotify.sdk.demo.RemotePlayerActivity.onConnectAndAuthorizedClicked(RemotePlayerActivity.java:332) at com.spotify.sdk.demo.RemotePlayerActivity.onCreate(RemotePlayerActivity.java:274) at android.app.Activity.performCreate(Activity.java:8178) at android.app.Activity.performCreate(Activity.java:8146) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1330) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3700) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3894) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2260) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:210) at android.os.Looper.loop(Looper.java:299) at android.app.ActivityThread.main(ActivityThread.java:8138) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037) 2022-04-11 14:32:08.912 2896-2896/com.spotify.android.appremote.demo I/libc: Requested dump for tid 2896 (.appremote.demo) 2022-04-11 14:32:10.637 2896-2896/com.spotify.android.appremote.demo W/Activity: PerfMonitor: Slow Operation: Activity com.spotify.android.appremote.demo/com.spotify.sdk.demo.RemotePlayerActivity onCreate took 5772ms 2022-04-11 14:32:10.670 2896-2942/com.spotify.android.appremote.demo D/SPOTIFY_APP_REMOTE: Start remote client 2022-04-11 14:32:10.698 2896-2942/com.spotify.android.appremote.demo D/SPOTIFY_APP_REMOTE: Connecting to Spotify service 2022-04-11 14:32:10.741 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor longMsg : seq=4 plan=14:32:01.351 late=2857ms wall=6519ms running=1442ms runnable=22ms binder=29ms h=android.app.ActivityThread$H w=159 procState=-1 2022-04-11 14:32:10.743 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor looperActivity : package=com.spotify.android.appremote.demo/com.spotify.sdk.demo.RemotePlayerActivity time=6519ms latency=2857ms running=1442ms procState=-1 historyMsgCount=3 (msgIndex=3 wall=2807ms seq=3 running=198ms runnable=8ms binder=9ms late=31ms h=android.app.ActivityThread$H w=110) 2022-04-11 14:32:10.746 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor looperActivity : package=com.spotify.android.appremote.demo/com.spotify.sdk.demo.RemotePlayerActivity time=1ms latency=9391ms running=0ms procState=-1 historyMsgCount=4 (msgIndex=3 wall=2807ms seq=3 running=198ms runnable=8ms binder=9ms late=31ms h=android.app.ActivityThread$H w=110) (msgIndex=4 wall=6519ms seq=4 running=1442ms runnable=22ms binder=29ms late=2857ms h=android.app.ActivityThread$H w=159) 2022-04-11 14:32:10.752 2896-2896/com.spotify.android.appremote.demo D/SPOTIFY_APP_REMOTE: Spotify service connected 2022-04-11 14:32:11.111 2896-2925/com.spotify.android.appremote.demo I/AdrenoGLES-0: QUALCOMM build : 9b824c0bed, I6c7bff0fbd Build Date : 10/09/21 OpenGL ES Shader Compiler Version: EV031.32.02.15 Local Branch : Remote Branch : Remote Branch : Reconstruct Branch : 2022-04-11 14:32:11.111 2896-2925/com.spotify.android.appremote.demo I/AdrenoGLES-0: Build Config : S P 10.0.7 AArch64 2022-04-11 14:32:11.111 2896-2925/com.spotify.android.appremote.demo I/AdrenoGLES-0: Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so 2022-04-11 14:32:11.126 2896-2925/com.spotify.android.appremote.demo I/AdrenoGLES-0: PFP: 0x016ee190, ME: 0x00000000 2022-04-11 14:32:11.148 2896-2925/com.spotify.android.appremote.demo D/hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument 2022-04-11 14:32:11.379 2896-2915/com.spotify.android.appremote.demo W/AppScoutStateMachine: Enter APP_SCOUT_SLOW state 2022-04-11 14:32:11.380 2896-2925/com.spotify.android.appremote.demo E/.appremote.dem: open libmigui.so failed! dlopen - dlopen failed: library "libmigui.so" not found 2022-04-11 14:32:11.387 2896-2896/com.spotify.android.appremote.demo W/Looper: PerfMonitor doFrame : time=632ms vsyncFrame=0 latency=37ms procState=-1 historyMsgCount=7 (msgIndex=1 wall=6519ms seq=4 running=1442ms runnable=22ms binder=29ms late=2857ms h=android.app.ActivityThread$H w=159) 2022-04-11 14:32:11.400 2896-2896/com.spotify.android.appremote.demo I/libc: Requested dump for tid 2896 (.appremote.demo) 2022-04-11 14:32:11.579 2896-2896/com.spotify.android.appremote.demo D/DecorView[]: onWindowFocusChanged hasWindowFocus true 2022-04-11 14:32:11.806 2896-2912/com.spotify.android.appremote.demo I/OpenGLRenderer: Davey! duration=9223320588370ms; Flags=0, FrameTimelineVsyncId=599947, IntendedVsync=51448484593637, Vsync=51448484593637, InputEventId=0, HandleInputStart=51448494443183, AnimationStart=51448494473339, PerformTraversalsStart=51448500785475, DrawStart=51448502332506, FrameDeadline=51448517926969, FrameInterval=51448494345370, FrameStartTime=16666666, SyncQueued=51448515271152, SyncStart=51448515325943, IssueDrawCommandsStart=51448515409641, SwapBuffers=51448516098443, FrameCompleted=9223372036854775807, DequeueBufferDuration=14375, QueueBufferDuration=495781, GpuCompleted=9223372036854775807, SwapBuffersCompleted=51448516878339, DisplayPresentTime=7310014087021199603, 2022-04-11 14:32:11.889 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2716 2022-04-11 14:32:11.892 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.897 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.899 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.901 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.905 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.907 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.911 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.912 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.915 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2716 2022-04-11 14:32:11.916 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.918 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.919 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.920 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.922 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.924 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.925 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.926 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.927 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.929 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.930 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.931 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.933 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.934 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.935 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.937 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.938 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.939 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.940 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.942 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.944 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.945 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.950 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.952 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 2719 2022-04-11 14:32:11.953 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.955 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2719 2022-04-11 14:32:11.957 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2716 2022-04-11 14:32:11.958 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719 2022-04-11 14:32:11.960 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719 2022-04-11 14:32:11.963 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719 2022-04-11 14:32:11.964 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719 2022-04-11 14:32:11.966 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719 2022-04-11 14:32:11.967 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719 2022-04-11 14:32:11.968 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719 2022-04-11 14:32:11.970 2896-2942/com.spotify.android.appremote.demo W/.appremote.dem: Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 2719
It has a lot of warnings, but not sure if above warning / error duplicated below are related.
2022-04-11 14:32:08.879 2896-2915/com.spotify.android.appremote.demo W/MIUIScout App: Enter APP_SCOUT_WARNING State 2022-04-11 14:32:08.902 2896-2934/com.spotify.android.appremote.demo W/MIUIScout App: Event:APP_SCOUT_WARNING Thread:main backtrace: at com.spotify.sdk.demo.RemotePlayerActivity.connect(RemotePlayerActivity.java:337) at com.spotify.sdk.demo.RemotePlayerActivity.onConnectAndAuthorizedClicked(RemotePlayerActivity.java:332) at com.spotify.sdk.demo.RemotePlayerActivity.onCreate(RemotePlayerActivity.java:274) at android.app.Activity.performCreate(Activity.java:8178) at android.app.Activity.performCreate(Activity.java:8146) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1330) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3700) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3894) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2260) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:210) at android.os.Looper.loop(Looper.java:299) at android.app.ActivityThread.main(ActivityThread.java:8138) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)
2022-04-11 14:18:09.860 1256-1336/com.spotify.android.appremote.demo E/.appremote.dem: open libmigui.so failed! dlopen - dlopen failed: library "libmigui.so" not found
Did you manage to solve the issue? I have the same issue now and I can't find a solution online
Same issue here!
Same issue
If you change "showAuthView = true" does it work? I cannot replicate on my machine.
What version of the app remote sdk / version of Spotify App do you have?
Okay, adding my details here:
I've tested with 0.8.0 on several Samsung Galaxy A53 devices, running Android 13, also Samsung Galaxy S10, running Android 12, it works fine. The logs go the until Unable to resolve Lcom/spotify/protocol/types/Roles
but then I also see rows of Unable to resolve Lcom/spotify/protocol/types/WelcomeDetails Unable to resolve Lcom/spotify/protocol/types/UserStatus
(I am not sure if it will help anyone, but noticed this, so noting here.)
However, on Xiaomi Note 9T running Android 12, the same issue happens.
(All phones running the latest version of spotify)
Any suggestion would be welcome.
Any updates here? I'm facing the same issue
We have stopped using the spotify-app-remote-release-0.8.0.aar library for authorization and built this part on the spotify-auth-release-2.1.0.aar, seems to solve connectivity issues for us.
Thanks for your interest in the Spotify App Remote SDK! If you're submitting a bug, please use the following template. If your issue is a feature request, please include your use-case so that we have all the necessary info.
Issue found on DATE. Mar 17, 2022
SDK Version:
SDK: spotify-app-remote-release-0.7.2.aar Spotify Android app: 8.7.10.1262
OS Version:
Android 12
Scope(s):
Cannot connect to Spotify App Remote on Android 12
Steps to reproduce:
Expected behaviour:
Actual behaviour:
If run the app-remote-sample on Android phone with Android OS 11, this issue doesn't happen. It doesn't work on Android 12 only