Question: `private int mShuffleMode = SharedPreferences.getInt("shufflemode");`

Tells me that a Non-static method can't be referenced from a static context.

I'm not entirely sure what this means.

What I'm trying to do is initialise the variable with the preference that was set before.

Answer: 
> 
> **Status** 
> 
> 
> This issue has been resolved in version 1.6.6.
> 
> 
> **Updating** 
> 
> 
> The steps to update your environment to the latest version containing
>  the fix:
> 
> 
> 
> ```
> npm uninstall -g @angular/cli
> npm cache clean
> # if npm version is > 5 then use `npm cache verify` to avoid errors (or to avoid using --force)
> npm install -g @angular/cli@latest
> 
> rm -rf node_modules dist # use rmdir /S/Q node_modules dist in Windows Command Prompt; use rm -r -fo node_modules,dist in Windows PowerShell
> npm install --save-dev @angular/cli@latest
> npm install    
> 
> ```
> 
> **Explanation** 
> 
> 
> The issue of [rxjs operator] is not a function is a result of the
>  migration of the devkit repo to using "pipeable" (formerly "lettable")
>  operators instead of the prototype patching approach that the Angular
>  CLI was using prior to release 1.6.6 (which was just released). The
>  commit which fixed it is here. 
> 
> 
> The issue is that the CLI was using operators that were not imported
>  and relied on them being on the Observable object. When the devkit was
>  updated it removed this function and the bug in the CLI was exposed.
>  The latest version of the CLI is now using pipeable operators and
>  therefore importing all of the operators needed to work with
>  observables, so this issue has been resolved.
> 
> 
> 

Explanation by Brocco:  

<https://github.com/angular/angular-cli/issues/9194#issuecomment-360615868>
I made the following changes installing this packages:

```
"@angular-devkit/build-optimizer": "0.0.36",
"@angular-devkit/core": "0.0.22",
"@angular-devkit/schematics": "0.0.42",
"@schematics/angular": "^0.1.11",
"@schematics/schematics": "0.0.11"

```

And it works now

[My Configuration](https://i.stack.imgur.com/lPxNd.jpg)