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
FC #12
Comments
thanks for the notice! it shouldn't happen though, as one is R.color.snackbar_text and should be built with a different ID. Will upload the fix shortly |
@sergeyfitis just uploaded v 2.0.1 to fix this, should be up soon. https://oss.sonatype.org/content/repositories/releases/com/nispok/snackbar/2.0.1/ |
Ok, thanks. |
Build failing o_O |
Yeah it's an issue with Travis. All tests pass when I run them with a Genymotion emulator. It seems like they changed something recently |
Snack bar still crashing with the same issue(v2.0.1) :( |
What I found: public final class R { Strange part is in section "public static final class id" (which must contains textview ids). But it is empty. |
Mmm weird. Can you provide some of your code? Have you tried the sample app? I've never had that problem |
Snackbar.with(getApplicationContext()) |
Hmmm, I just update Android studio to 0.9.2, create new empty project. And your library works fine. |
no worries! which version of AS you had before the upgrade? |
0.9.1 |
I'm just trying this out today and I'm getting this problem. Using the same code as above, with library v2.1.0, and Android Studio 0.9.3 and I get the id error. I'm not really sure how to go about fixing it |
It's weird, which ID is your project not finding? Did you try cleaning/rebuilding the project? I just tested it and it works fine on a new project. How's your project setup? Are you running the code on a Fragment or an Activity? |
It was the same snackbar_text id as above. I tried cleaning and rebuilding, no change. It was in an Activity. However, this morning I tried again and it seems to be working. The only think I think I did differently was putting the library at the top of my dependencies list. But when I moved it around the list to test the effect, it started crashing again and wouldn't work when I put it back at the top. I also thought using the this library: https://github.com/navasmdc/MaterialDesignLibrary So it's working for me now but I'm not sure why |
Ok thanks for the info. I'll take a look at that library |
I'll probably add a prefix to all resources. Didn't consider "snackbar" to be a common prefix. Thanks for reporting this |
Snackbar crashes, because textview in snackbar.xml and color in colors.xml had named by the same id snackbar_text.
It throw java.lang.NoSuchFieldError: No static field snackbar_text of type I in class Lcom/nispok/snackbar/R$id; or its superclasses (declaration of 'com.nispok.snackbar.R$id' at com.nispok.snackbar.Snackbar.init(Snackbar.java:226)
The text was updated successfully, but these errors were encountered: