avast / android-styled-dialogs

Backport of Material dialogs with easy-to-use API based on DialogFragment
Apache License 2.0
2.15k stars 450 forks source link

Need get aar library instead jar while connecting via gradle #68

Closed ultraon closed 9 years ago

ultraon commented 10 years ago

Hi, when i connect this library to my project, i can't get set of library resources (styles, colors), because i get simple jar with my gradle. I have this string in build.gradle: compile 'eu.inmite.android.lib:android-styled-dialogs:1.2.0' Need implement aar library with connection string "compile 'eu.inmite.android.lib:android-styled-dialogs:1.2.0@aar'". Thanks.

davidvavra commented 10 years ago

Hi, there is no jar for 1.2.0 release. You can see it here: http://search.maven.org/#browse%7C739301968

The problem must lie somewhere else.

ultraon commented 10 years ago

When i link this lib to gradle dependency (compile 'eu.inmite.android.lib:android-styled-dialogs:1.2.0') and Sync gradle, i get in External Libraries section *.jar file, but by comparing with another libs that gives me aar, they gives me compiled projects (aar) by path: main_project/main_app/build/intermediates/exploded-aar/... So i can't use resource files from your lib. capture

this link: compile 'eu.inmite.android.lib:android-styled-dialogs:1.2.0@aar' doesn't help me. I get the same result.

Try to compile your example project with linking via compile 'eu.inmite.android.lib:android-styled-dialogs:1.2.0' and try to find your resources from lib

davidvavra commented 10 years ago

Interesting - I just tried on my personal project and it behaves the same. The library is not in the exploded-aar section and looks like jar. In the editor things like DialogStyleLight is red. But it compiles and works normally. Maybe some bug in Android Studio? Does it compile for your?

ultraon commented 10 years ago

Your library works under jar (not aar), but uses incorrect or default styles, because your styles in resources are not available.

suarezjulian commented 9 years ago

I suffer from the same problem

tomasznguyen commented 9 years ago

Hi,

I suffer from the same issue. I've added compile 'eu.inmite.android.lib:android-styled-dialogs:1.2.0' to my 'build.gradle'. The class files got downloaded and compiled but not the resources. Therefore, I'm not able to style the dialogs. Furthermore, in the following code:

@style/DialogStyleLight.Custom

and