Material-dialogs: Extension functions aren't resolving

Created on 17 Sep 2018  路  8Comments  路  Source: afollestad/material-dialogs

([x] becomes a filled in checkbox, [ ] is an empty one)


Include the following:
  • Material Dialogs version: 2.0.0-alpha10

Also, please wrap your code with correct syntax highlighting (not just indents).

val dialog = MaterialDialog(this)
            .customView(view = dialogTrainerChange, false)
            .show()

Thanks for your fully convenient library :)
Recently I try to migrate from 0.9.6.0 to 2.00-alpha because of proguard issue of previous version. but when I access extension function customView of new version, AS says cannot find declaration to go to( It's same for all of other extension functions).

My project is in Kotlin version 1.2.70, AndroidX, gradle 3.2.0-rc03, tested in AS 3.2-RC02. I have tried many things like invalidate and restart, rearrange library with restart, update AS version, Kotlin version, gradle version.. but I can't figure it out why it happens.

Any Advise for me? ;(

bug

All 8 comments

Can you try 2.0.0-alpha09? It doesn't have AndroidX but another recent issue has the same problem with 10.

It resolved. Thanks!

going back to version 09 fixed the problem for me too, so whatever changed after 09 in version 10 is causing this problem

I want to override content color for my dialog which does not seem to be possible in version 09
(gives me an error when compiling)

Should be fixed in alpha11

Looks like it could maybe still be an issue

Nevermind all is well

Was this page helpful?
0 / 5 - 0 ratings