Android Studio Particle Trouble

These are the errors I’m getting. I’ve noticed the docs are for an older version of andriod studio and since then they’ve changed a few things. Would the changes of caused these issues?

The changes may have caused these issues.
One of the error messages explicitly states SDK version must by greater or equal 26 - which version have you selected?

Well isnt the only version available those from the docs:

I dont know what SDK version they are but they say in the Docs you must choose >15

That >15 might be the old info and the blurb was just not updated, but you now need to install and select an Android SDK >= 26 in order to build for that Android target.
This is not a the Particle Android SDK but the native Android SDK

is this what you’re referring to? Although I’m using 26 so it shouldn’t be a problem right?

Yup, this way at least the error about --min-sdk-version >= 26 should not be thrown.

I solved it.

I had to put in build.gradle:

andriod {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8