RetrofitError connecting to CloudSDK

I am trying to use the Android SDK to connect to my Photon from my phone, but I get a retrofit.RetrofitError when connecting to the cloud. I read this post that had a similar situation which was solved by upgrading the cloudsdk version, but I am currently using a newer version, so I don’t think this is the problem. Here is the code I am running:

protected void onCreate(Bundle savedInstanceState) {


    try {
        ParticleCloud c = ParticleCloudSDK.getCloud();
        c.logIn("<my_email_address>", "<my_password>");
        Log.i("test", "Logged in");
    catch ( e) {

And here is the gradle file:

apply plugin: '’
android {
compileSdkVersion 27
defaultConfig {
applicationId "test.test"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner “”
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘’
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation ''
implementation ''
implementation ''
testImplementation 'junit:junit:4.12'
androidTestImplementation ''
androidTestImplementation ''
implementation 'io.particle:cloudsdk:0.5.1'
implementation 'io.particle:devicesetup:0.6.1'


Any input would be greatly appreciated.
Thanks :slight_smile:

Did you ever figure this out?