RetrofitError connecting to CloudSDK

Hi,
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:

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    ParticleCloudSDK.init(this);

    try {
        ParticleCloud c = ParticleCloudSDK.getCloud();
        c.logIn("<my_email_address>", "<my_password>");
        Log.i("test", "Logged in");
    }
    catch (io.particle.android.sdk.cloud.exceptions.ParticleCloudException e) {
        Log.i("test",e.getMessage());
    }
}

And here is the gradle file:

apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "test.test"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions{
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:animated-vector-drawable:27.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
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?