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:
‘io.particle:cloudsdk:0.5.0’
‘io.particle:devicesetup:0.5.3’
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
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
}
}