-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Known Issue] Error: Failed to resolve: com.twitter.sdk.android:twitter:2.0.0 when syncing with Gradle #392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Adding this to readme will be better. |
@kirtan403 we have it in the auth README. You don't need this repository addition if you're only using database or storage. |
@samtstern Ohh.. I didn't checked the auth one. I checked the main one. Thanks for pointing that out. 😄 Is it really needed even if I do not use twitter authentication? |
@kirtan403 it's needed just to get gradle to be happy since the Twitter Android SDK is listed as a transitive dependency in the We are looking for ways in later versions to remove this friction. |
I have added fabric repository to build.gradle(App) as -
Getting Error -
I added gson dependency but didn't work. @kirtan403 did your issue resolved by adding fabric repo only ? |
@jay-thakur see this stack overflow post on how to turn off offline mode: http://stackoverflow.com/q/28712025/4548500 And of course make sure you are online. |
@SUPERCILEX thanks. Worked. |
Even adding the reference the problem remains guys (same as reported in the issue title). I can compile only in the 0.6.2 version. My gradle:
I'm syncing with the online configuration. Thanks! |
I had the same problem in 1.0.0 and solved it. app/build.gradle:
authentication/build.gradle:
|
Yeah @GaborPeto, i have two modules and the problem is solved now when i just put the repository in the app\build.gradle Before i was trying to put the declaration on build.gradle general file common to all sub-projects/modules There is no need for me to repeat the repository in the two build.gradle files for both of modules. Anyway thanks very mutch GaborPeto for the advice! |
I'm pretty sure I tested that the I got the error if I didn't put the repositories into both build.gradle files. But if you're saying it is working I might just double check it as I really don't like the fact that I have to duplicate that piece of config. |
So just an update on my previous comment:
from either of app/build.gradle or authentication/build.gradle results in |
@GaborPeto Add repository to allprojects as well. // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript {
} allprojects { task clean(type: Delete) { |
Thanks @isurum, that works too |
@yawarali Check the first post. Add this line: |
@yawarali, put it in your |
@yawarali You already have repositories section (just above the error). Just add that single line after jcenter(). |
@kirtan403 I did as you said. Please see second screenshot. |
@SUPERCILEX I was just creating it in paint! Thanks 😄 You were quick |
@kirtan403 I have a secret trick for being so fast: the "Snipping Tool". It's the best thing ever! You can quickly select an area to take a screenshot of and then Ctrl+C and Ctrl+V it directly into a post. It's way faster than PrtScr->paste into paint->crop->select all->copy 'n paste. Anyway, just me being nerdy. 😄 |
@SUPERCILEX haha! I didn't knew it can be pasted directly here! I though I can just drag the jpg/png here! Now windows ink tool with screen sketch is also good! Thanks for the tip 😃 |
FirebaseUI only support minSdk 16 so you have to go to your app |
@kirtan403 @SUPERCILEX Thanks guys all issue are resolved. This is my first experience, real time communication. |
@yawarali Your welcome 👍 Enjoy firebase 😄 |
@yawarali Glad to hear that! Have fun! 😄 |
In my case com.twitter.sdk.android:twitter:2.0.0 was solved adding the code below into app/gradle and upgrading minSdkVersion to 16: Thanks! :) @GaborPeto @SUPERCILEX P.S. Sorry for the format, I have never posted an issue before :( |
just an update in case this is still confusing some: |
@samtstern Since |
I think given that it's in the Auth README we can close this issue. It's not "fixed" but the workaround is documented. |
I found the solution:
2- in project manifest file make sure to change rtl support to false as it conflict with firebase-ui:
|
I followed the guide in the README for version 1.2.0 adding the needed dependency and fabric repository Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'. Is there a documented workaround for errors in this area? |
@BrownEli that sounds like something different, please file a new issue |
@BrownEli I am getting the same error, how did you solve it? |
I just used a newer version on the library.
…On May 22, 2017 23:32, "Mohammed Faisal" ***@***.***> wrote:
@BrownEli <https://github.com/browneli> I am getting the same error, how
did you solve it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#392 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANFFcS802kvX5xBCxqBM2LmbKtQ521dDks5r8fDvgaJpZM4KqEBo>
.
|
@BrownEli Thanks and here by 'library' you mean firebase auth ui. Right??? |
My guess is because, firebaseui is also also adding the facebook app id,
you need to replace what the library is doing.
This should work! Let me know if it helped.
<meta-data android:name="com.facebook.sdk.ApplicationId"
tools:replace="android:value"
android:value="your facebook app id"/>
…On Aug 31, 2017 12:40, "nabeelnazir163" ***@***.***> wrote:
[image: help]
<https://user-images.githubusercontent.com/30865060/29917075-33d39ff0-8e5a-11e7-97fb-142e878239e5.png>
I am having this issue now !! How to fix this problem
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#392 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANFFcZAKMlv1nSU7sm1CnASS7jx-ZRnhks5sdn-CgaJpZM4KqEBo>
.
|
Uh oh!
There was an error while loading. Please reload this page.
If you are upgrading a project to version 1.0.0 you may encounter the error
Failed to resolve: com.twitter.sdk.android:twitter:2.0.0
when syncing your project with Gradle. Version 1.0.0 has added a new required configuration step. To resolve this issue you must add the Fabric repository to your repositories:The text was updated successfully, but these errors were encountered: