Closed ubarua123 closed 3 years ago
Could you show your implementation in build.gradle for app? I found lib on maven central and link don't have bottomsheets. Your url:
https://repo.maven.apache.org/maven2/com/maxkeppeler/**bottomsheets**/core/2.1.3/core-2.1.3.pom
Maven Central url:
https://repo1.maven.org/maven2/com/maxkeppeler/**sheets**/core/2.1.3/core-2.1.3.aar
The repo mavenCentral()
is correct. (Is the repository in the buildscript or allprojects?)
The package name was previously changed from com.maxkeppeler.bottomsheets
to com.maxkeppeler.sheets
to reflect the functionality that a component can be displayed dynamically as a bottom-sheet or a dialog.
The dependencies look like this now:
implementation 'com.maxkeppeler.sheets:<module>:<latest-version>
Are your dependencies correct?
Overview of the dependencies: https://search.maven.org/search?q=com.maxkeppeler.sheets
Browse the artifacts here: https://repo1.maven.org/maven2/com/maxkeppeler/sheets/
Make sure to use the latest version.
I remember I had the same issue until I cleaned caches etc. Afterwards it pulled the library from the correct url.
Thanks! Yes that was the issue. Didn't notice the package name change.
Another quick question: I want to the override the styles of the sheets. What is the parent style that I should extend in styles.xml? You have only specified the item attributes.
Great that it works now!
I use the parent style "Theme.MaterialComponents.DayNight.NoActionBar" in the sample. Either this style or a comparable style will do the job!
Any more repos I am missing out 😀