--Turns out I had another dependency that had a conflicting support library. When i removed the dependency, the project built and ran successfully.
---I tried updating the version of the v4-support library i had but the crash logs showed a completely different version of the library from the one i had. I then checked through all my dependencies to see which ones may also include their own version of the support library and removed them
----Using gradlew app:dependencies displays a dependency tree that can help to find inconsistent versions
-----Waooh, i think it works. This may be a big problem since dependencies could be an essential part of an application and removing it just to fix such an issue is disappointing. I think some standards need to be set for building dependencies and publishing. People could do better jobs at building dependencies to avoid such conflicting situations.
可能是Classes.dex重复,导致CollapsingToolbarLayout错误
http://stackoverflow.com/questions/37386448/error-inflating-collapsingtoolbarlayout
--Turns out I had another dependency that had a conflicting support library. When i removed the dependency, the project built and ran successfully. ---I tried updating the version of the v4-support library i had but the crash logs showed a completely different version of the library from the one i had. I then checked through all my dependencies to see which ones may also include their own version of the support library and removed them ----Using gradlew app:dependencies displays a dependency tree that can help to find inconsistent versions -----Waooh, i think it works. This may be a big problem since dependencies could be an essential part of an application and removing it just to fix such an issue is disappointing. I think some standards need to be set for building dependencies and publishing. People could do better jobs at building dependencies to avoid such conflicting situations.