{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/android-sdk/issues/139","labels_url":"https://api.github.com/repos/spotify/android-sdk/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/spotify/android-sdk/issues/139/comments","events_url":"https://api.github.com/repos/spotify/android-sdk/issues/139/events","html_url":"https://github.com/spotify/android-sdk/issues/139","id":97207170,"number":139,"title":"Spotify android SD example - cannot get player","user":{"login":"dcoutts23","id":13494310,"avatar_url":"https://avatars.githubusercontent.com/u/13494310?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoutts23","html_url":"https://github.com/dcoutts23","followers_url":"https://api.github.com/users/dcoutts23/followers","following_url":"https://api.github.com/users/dcoutts23/following{/other_user}","gists_url":"https://api.github.com/users/dcoutts23/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoutts23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoutts23/subscriptions","organizations_url":"https://api.github.com/users/dcoutts23/orgs","repos_url":"https://api.github.com/users/dcoutts23/repos","events_url":"https://api.github.com/users/dcoutts23/events{/privacy}","received_events_url":"https://api.github.com/users/dcoutts23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-25T08:07:28Z","updated_at":"2015-07-29T12:16:06Z","closed_at":null,"body":"Hi all, followed the tutorial exactly. Seems to authenticate correctly, but get the 'Failed SpInit with error code 5 (An unexpected argument value was passed to a function)' when i attempt call getPlayer\r\n\r\nCan anyone please provide any guidance or any more information required on this?\r\n\r\nusing 1.0.0-beta10 \r\n\r\n    07-25 17:36:49.148    5820-5820/dave.spotifytest D/dalvikvm﹕ Trying to load lib /data/app-        lib/dave.spotifytest-1/libgnustl_shared.so 0x422382f0\r\n    07-25 17:36:49.153    5820-5820/dave.spotifytest D/dalvikvm﹕ Added shared lib /data/app-lib/dave.spotifytest-1/libgnustl_shared.so 0x422382f0\r\n    07-25 17:36:49.153    5820-5820/dave.spotifytest D/dalvikvm﹕ No JNI_OnLoad found in /data/app-lib/dave.spotifytest-1/libgnustl_shared.so 0x422382f0, skipping init\r\n    07-25 17:36:49.158    5820-5820/dave.spotifytest D/dalvikvm﹕ Trying to load lib /data/app-lib/dave.spotifytest-1/libspotify_embedded_shared.so 0x422382f0\r\n    07-25 17:36:49.158    5820-5820/dave.spotifytest D/dalvikvm﹕ Added shared lib /data/app-lib/dave.spotifytest-1/libspotify_embedded_shared.so 0x422382f0\r\n    07-25 17:36:49.158    5820-5820/dave.spotifytest D/dalvikvm﹕ No JNI_OnLoad found in /data/app-lib/dave.spotifytest-1/libspotify_embedded_shared.so 0x422382f0, skipping init\r\n    07-25 17:36:49.163    5820-5820/dave.spotifytest D/dalvikvm﹕ Trying to load lib /data/app-lib/dave.spotifytest-1/libspotify_sdk.so 0x422382f0\r\n    07-25 17:36:49.163    5820-5820/dave.spotifytest D/dalvikvm﹕ Added shared lib /data/app-lib/dave.spotifytest-1/libspotify_sdk.so 0x422382f0\r\n    07-25 17:36:49.183    5820-5871/dave.spotifytest E/SpotifySDK﹕ Throwing exception, failed SpInit with error code 5 (An unexpected argument value was passed to a function)\r\n    07-25 17:36:49.198    5820-5871/dave.spotifytest W/System.err﹕ com.spotify.sdk.android.player.NativeSpotifyException: Failed SpInit with error code 5 (An unexpected argument value was passed to a function)\r\n    07-25 17:36:49.208    5820-5871/dave.spotifytest W/System.err﹕ at com.spotify.sdk.android.player.NativeSdkPlayer.nativeInitialize(Native Method)\r\n    07-25 17:36:49.218    5820-5871/dave.spotifytest W/System.err﹕ at com.spotify.sdk.android.player.NativeSdkPlayer.initialize(NativeSdkPlayer.java:79)\r\n    07-25 17:36:49.228    5820-5871/dave.spotifytest W/System.err﹕ at com.spotify.sdk.android.player.Player.startRunLoop(Player.java:390)\r\n    07-25 17:36:49.238    5820-5871/dave.spotifytest W/System.err﹕ at com.spotify.sdk.android.player.Player.access$100(Player.java:86)\r\n    07-25 17:36:49.248    5820-5871/dave.spotifytest W/System.err﹕ at com.spotify.sdk.android.player.Player$1.run(Player.java:367)\r\n    07-25 17:36:49.523    5820-5820/dave.spotifytest E/MainActivity﹕ Could not initialize player: com.spotify.sdk.android.player.NativeSpotifyException: Failed SpInit with error code 5 (An unexpected argument value was passed to a function)    \r\n    "},"comment":{"url":"https://api.github.com/repos/spotify/android-sdk/issues/comments/125933784","html_url":"https://github.com/spotify/android-sdk/issues/139#issuecomment-125933784","issue_url":"https://api.github.com/repos/spotify/android-sdk/issues/139","id":125933784,"user":{"login":"dcoutts23","id":13494310,"avatar_url":"https://avatars.githubusercontent.com/u/13494310?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoutts23","html_url":"https://github.com/dcoutts23","followers_url":"https://api.github.com/users/dcoutts23/followers","following_url":"https://api.github.com/users/dcoutts23/following{/other_user}","gists_url":"https://api.github.com/users/dcoutts23/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoutts23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoutts23/subscriptions","organizations_url":"https://api.github.com/users/dcoutts23/orgs","repos_url":"https://api.github.com/users/dcoutts23/repos","events_url":"https://api.github.com/users/dcoutts23/events{/privacy}","received_events_url":"https://api.github.com/users/dcoutts23/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T12:16:06Z","updated_at":"2015-07-29T12:16:06Z","body":"Thanks for the help. I have a premium account.\r\n    \r\nHere is my player config\r\n\r\n    playerConfig = {com.spotify.sdk.android.player.Config@830039459272}\r\n    brandName = {java.lang.String@830039467176}\"HARDKERNEL_CO.,_LTD.\"\r\n    uniqueId = {java.lang.String@830039466656}\"d959db14f79bb267\"\r\n    cachePath = {java.lang.String@830039468912}\"/storage/sdcard0/Android/data/dave.spotifytest/files\"\r\n    osVersion = {java.lang.String@830039477208}\"4.4.4\"\r\n    clientId = {java.lang.String@830039476944}\"##############################\"\r\n    oauthToken = {java.lang.String@830039455176}\"#############################\"\r\n    displayName = {java.lang.String@830039466896}\"spotifytest\"\r\n    modelName = {java.lang.String@830039467360}\"odroid-u\"\r\n    mShouldUseCache = true\r\n    deviceTypeIndex = 0\r\n    cacheSizeLimitInMegabytes = 1024\r\n    cacheAgeLimitInSeconds = 604800\r\n\r\nHere is my call to getPlayer\r\n\r\n    mPlayer = Spotify.getPlayer(playerConfig, this, new Player.InitializationObserver()\r\n\r\nAnd looking at it in debug\r\n\r\n    mPlayer = {com.spotify.sdk.android.player.Player@830039482640}\r\n    mAudioController = {com.spotify.sdk.android.player.AudioTrackController@830039489048}\r\n    mCacheExecutorService =                          {java.util.concurrent.Executors$DelegatedScheduledExecutorService@830039483160}\r\n    mConnectionStateCallbacks = {java.util.Collections$SynchronizedSet@830039487256} size = 0\r\n    mHandler = {android.os.Handler@830039663584}\"Handler (android.os.Handler) {423823e0}\"\r\n    mInitializationState =   {com.spotify.sdk.android.player.Player$InitializationState@830039486360}\"PENDING\"\r\n    mInitializedMutex = {java.lang.Object@830039485408}\r\n    mPlayerNotificationMutex = {java.lang.Object@830039485440}\r\n    mLoggedInMutex = {java.lang.Object@830039485424}\r\n    mNativePlayer = {com.spotify.sdk.android.player.NativeSdkPlayer@830039671824}\r\n    mPendingTasks = {java.util.LinkedList@830039487048} size = 0\r\n    mPendingTasksMutex = {java.lang.Object@830039485456}\r\n    mPlayerNotificationCallbacks = {java.util.Collections$SynchronizedSet@830039487352} size = 0\r\n    mIsLoggedIn = false\r\n    mShouldShutdown = false"}}