Failed to resolve: 'com.squareup.retrofit2.converter-gson:2.3.0' - retrofit

I am trying to include 'com.squareup.retrofit2.converter-gson:2.3.0' using Android Studio 3.2 Canary 5
See image below

as you can search in google, putting this worked, I hope it helps you too
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.google.code.gson:gson:2.8.4'
Solution

implementation 'com.squareup.retrofit2:converter-gson:<latest-version>'
The latest version can be found here.

Simply paste this instead :
implementation 'com.google.code.gson:gson:2.8.5'
implementation'com.squareup.retrofit2:retrofit:2.6.1'

Use (where is possible) the latest version, I had the same error but it looks like the retrofit 'com.squareup.retrofit2.converter-gson:2.3.0' version 2.3.0 is deprecated.
This works for me:
//Retrofit2
implementation 'com.squareup.retrofit2:retrofit:2.6.2'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
Source:
https://square.github.io/retrofit/
https://github.com/square/retrofit

it works perfectly well.
//retrofit
implementation 'com.squareup.retrofit2:retrofit:2.8.1'
implementation 'com.squareup.retrofit2:converter-gson:2.8.1'
It gives/provides the latest repo you'll need.

Related

Observable.just for rxdart: ^0.26.0

I have the new rxdart: ^0.26.0 version, and I know Observable got deprecated and you can use Stream instead, question is, how do I use Observable.just for the newer version?
I found it on package's changelog
Observable.just has been replaced with Stream.value

Firebase firestore,auth,storage Version error

I am using using firestore,auth and storage. I know all the versions of them should be same.
before:
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-firestore:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
this works fine
but now I have to use
documentReference2.update("test", FieldValue.arrayUnion(documentReference));
So I need to use the newer version of firestore. I tried changing it to 19.0.0,18.0.0,16 etc for all of them. I tried every possible way. But always gives the
error:Failed to resolve: com.google.firebase:firebase-auth:16.0.0
base:firebase-storage:16.0.0 Show in File Show in Project Structure
dialog
I'm unable to find a solution
Update the following:
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-firestore:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
into this:
implementation 'com.google.firebase:firebase-auth:17.0.0'
implementation 'com.google.firebase:firebase-firestore:19.0.0'
implementation 'com.google.firebase:firebase-storage:17.0.0'
Check the latest versions here:
https://firebase.google.com/support/release-notes/android#latest_sdk_versions

What to replace for this using Microsoft.WindowsAzure.MobileServices.SQLiteStore.SQLiteStore

We follow this article and it's been running ok https://developer.xamarin.com/samples/xamarin-forms/WebServices%5CTodoAzure/
but then since yesterday we change the code to allow offline sync - #define OFFLINE_SYNC_ENABLED and after that we can't rebuild the solution due to "using Microsoft.WindowsAzure.MobileServices.SQLiteStore;" below missing assembly ? Now check this on Nuget and apparentlt it's beeing deprecated. So what to change on this then?
#if OFFLINE_SYNC_ENABLED
using Microsoft.WindowsAzure.MobileServices.SQLiteStore;
using Microsoft.WindowsAzure.MobileServices.Sync;
#endif
I'm appreciated your input.
Thanks
My bad. Didn't realise that we need to include package for Microsoft.Azure.Mobile.Client.SQLiteStore package from Nuget ...looks good now :)

Collection findAllResults in Groovy 1.7.5

Groovy 1.7.5 claims to have both findResult and findAllResults. But when I try, it seems to have only findResult. findAllResults is not included in the groovy jdk documentation, either. Am I not reading it thoroughly?
If you read the comments in that issue, (Ted Naleid added a comment - 19/Jun/10 10:46 PM) says that findAllResults was removed as it can be easily achieved with an inject in it's place
As a follow up, this has been implemented as of Groovy 1.8.1 as findResults instead of findAllResults. It's cleaner than using inject in many situations.

FlexUnit4: [Test(expect="Error")] doesn't catch errors?

The following code produces a failed test, not a passing test (as I would expect):
[Test(expects="Error")]
public function someTest():void {
throw Error("this test doesn't pass");
}
In older versions it was [Test(expected='')]
In newer versions we support both expected and expects as this was confusing for many
Make sure you're linking against the release SWC of FlexUnit, or if you're compiling it yourself, make sure you're using --keep-as3-metadata+=Test in the "additional compiler options" box in project properties.
I think the problem may have been that I was using an older version of FlexUnit4. I just upgraded (to 4.0 RC1) and it seems to be working now.

Resources