'Could not find com.twitter.sdk.android:twitter-core:3.3.0

jCenter may be shut down right now. I knew jCenter was already out of support. But our app is still using it.

After jCenter closed, we can not build for android. So we use mavenCentral instead of jCenter.

buildscript {
    repositories {
-       jCenter()
+       mavenCentral()
    }
}

and tried to build my project. I encountered below error.

$ ./gradlew assemble 

Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
   > Could not find com.twitter.sdk.android:twitter-core:3.3.0.
     Required by:
         project :app
   > Could not find com.google.ads.mediation:facebook:6.2.0.0.
     Required by:
         project :app

As far as I searched on maven repository, mavenCentral doesn't have twitter-sdk. https://search.maven.org/search?q=com.twitter.sdk.android

I know twitter-sdk is already deprecated. but our project is highly depending on it. We should resolve this problem provisionally.

I don't know hot to get jar file. Do you have any idea to solve this problem?



Solution 1:[1]

It can be done only if you know the exact width to be scrolled. Use scrollController

ScrollController scrollController = ScrollController(
  initialScrollOffset: 100, // or whatever offset you wish
  keepScrollOffset: true,
);

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ujjwal Raijada