https://kotlinlang.org logo
#android
Title
# android
j

justasm

03/09/2017, 8:56 AM
Hi all. Has anyone tried to use
kotlin-android-extensions
to access synthetic widget properties from another Android library module within the project? In my attempts the IDE imports and autocompletes and resolves the references properly, but the
compileDebugKotlin
build step fails with
Unresolved reference
for the synthetic properties. Does the plugin simply not support such use cases? Sample: https://gist.github.com/justasm/4a75afd5f5f3e6ba0dbc16b5a1e5331b
l

louiscad

03/10/2017, 9:42 PM
@justasm I had the exact same issue. I'd advise to either use Java and the old style findViewById + cast for very simple Views, or using kotterknife (which uses property delegation), or your own idiomatic logic code to get the views. Have you posted a bug on YouTrack?
j

justasm

03/18/2017, 7:35 PM
It’s a shame to have to compromise. I’ve reported the issue at https://youtrack.jetbrains.com/issue/KT-16934
2 Views