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: 
Here is the link to git issue: <https://github.com/angular/devkit/issues/380>

Solution (temporary solution until they fix the issue):
Adding the following lines to the package.json fixes the problems

```
"@angular-devkit/schematics":"0.0.42", 
"@angular-devkit/core": "0.0.23", 

```

To create new project run the following command

```
npm i @angular-devkit/schematics@0.0.45 @angular/cli --no-save

```

These solutions were provided in the git issue,
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)