-
Notifications
You must be signed in to change notification settings - Fork 51
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
App crashing right away after including the library #15
Comments
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.shajeelafzal.quicktasks_app/com.shajeelafzal.quicktasks_app.MainActivity}: android.view.InflateException: Binary XML file line #28: Error inflating class android.support.design.widget.FloatingActionButton Paste your XML |
Please note that the app works fine without library. Layout file:
|
I can't see the FloatingActionButton in your XML there (which was part of the error msg) |
I was thinking of a conflict between libs but it seems unlikely |
Its in the fragment, here is the layout:
|
can you paste your gradle file with deps |
Sure:
|
logcat says: Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2 Do you have some code that is setting the color on the FAB ? com.shajeelafzal.quicktasks_app.fragments.HomeFragment.onCreateView(HomeFragment.java:79) |
that line 79 is probably your XML so there might be a conflict between colours between the 2 libs |
No. Although the app automatically picks the Primary color from the resources since the project is using material theme. |
Yup may be. But what will be solution? |
find which colours first... depends how many... |
Ok. Also please update it according to new material theme, currently it is using Holo theme i guess. #1 |
My colors.xml looks like this:
|
I made a test project (new project from android studio) added my lib and it works fine, it runs fine (it also has the design lib) |
so I guess there's no conflicts |
Pull requests are welcome |
Thanks. |
I'd like to help you more but I'm facing a dead end here.... |
I can understand 👍 |
I tried with the following config on my newly created project:
|
Works fine... closing |
I would look into the deps that are in your libs folder |
I am getting following exception after including in the project:
My
build.gradle
file looks like this:The text was updated successfully, but these errors were encountered: