Hi,
I'm currently trying to build my project in Release mode on Android and it keep crashing when using Spotify.login() or Spotify.loginWithSession().
I'm building to a Google Pixel 3 with API 28.
In debug mode (on iOS and Android) it works like a charm but in release (only for Android) it's not working.
The error :
java.lang.NoSuchFieldError: no "Ljava/lang/String;" field "oauthToken" in class "Lcom/spotify/sdk/android/player/Config;" or its superclasses
JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NoSuchFieldError: no "Ljava/lang/String;" field "oauthToken" in class "Lcom/spotify/sdk/android/player/Config;" or its superclasses
(Throwable with no stack trace)
in call to FindClass
from java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader)
"main" prio=5 tid=1 Runnable
| group="main" sCount=0 dsCount=0 flags=0 obj=0x757daee0 self=0xe635c000
| sysTid=10286 nice=-4 cgrp=default sched=0/0 handle=0xeafe1494
| state=R schedstat=( 7054347386 3132893614 5553 ) utm=389 stm=316 core=0 HZ=100
| stack=0xff188000-0xff18a000 stackSize=8MB
| held mutexes= "mutator lock"(shared held)
React: 16.8.3
React Native: 0.59.9
RN Spotify SDK: 1.2.10
Android API: 28 (v9.0 Pie)
Gradle: 5.4.1
Android Plugin Version: 3.4.0