Kotlin / anko

Pleasant Android application development
Apache License 2.0
15.88k stars 1.29k forks source link

Missing class on Anko preview #612

Open dss99911 opened 6 years ago

dss99911 commented 6 years ago

Hi, I'm using Anko preview plugin.

but, when I add google AdView.

the error below comes out.

can you help me to solve the issue?

The following classes could not be found: - __anko.preview.View (Change to com.google.android.gms.ads.AdView, Change to android.media.tv.TvView, Fix Build Path, Edit XML, Create Class)

Abegemot commented 6 years ago

I'm too having following classes could not be found: - __anko.preview.View (Change to android.media.tv.TvView, Fix Build Path, Edit XML, Create Class)

I think it stopped working since Android 3.1.2 update, since then I been eagerly waiting for a new anko release but alas! still doesn't work .....

https://github.com/Kotlin/anko/issues

alyyasser commented 6 years ago

i got the same issue too. using anko support plugin version 10.0.5 and android studio 3.1.2

any workaround?

bullWing commented 6 years ago

I also have this problem. as 3.1.2 and anko anko support plugin 0.10.5

panhs commented 6 years ago

have you solve it?

landongme commented 6 years ago

Hi guys, add this code to build.gradle (App) under dependencies kotlin { experimental { coroutines "enable" } } then, rebuild project and see..