Hi,
I am building a simple android mobile app using Android Studio. I am trying to include particle cloudsdk for android as per the documentation and adding the following in my module's build.gradle:
But if access that url (https://jcenter.bintray.com/io/particle/cloudsdk/0.1.3/cloudsdk-0.1.3.pom), I can connect from my browser without any issue.
Note that I have not yet calling any particle cloudsdk APIs as yet, just trying to include the sdk and build and once successful, I would start calling the particle cloud APIs.
Any idea, anyone, what might be going wrong here? Would really appreciate any help.
Realized that it’s the http proxy issue with Android Studio since I am behind a firewall.
I tried setting the auto proxy detection URL (used by my system/browsers, as provided by my company), but this didn’t help either. After applying the settings, check connection fails with time out.
I am using Android Studio 1.3.
So I believe this is rather Android IDE issue than a particle cloud sdk issue.
Anyway, if anyone has faced this issue and resolved already, please share the details.
Looks like I got most of my issues resolved, but getting the following which I think particle folks can comment better (the jar can't be accessed from the browser as well, plus I tried with cloudsdk version '0.2.0' as per latest doc):
As a workaround, you could try providing guava by downloading the jar via some other means, and then tossing it in /app/libs (which you’ll need to create, IIRC).
Thanks @jensck !
Surprisingly it just started working now and I can build my app successfully (and also downlaod the jar via browser which was not working earlier)!
I didn’t have to do anything at all … just tried after 1 day, that’s all.
So, I think that link was coincidentally down for a certain period when I was trying to access via browser and android studio. Funny though …
Anyway, I can now move on to writing actual code using the cloudsdk.
Thanks again.