Kotlin / anko

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

Failed to resolve extension functions using Android Studio build tools 3.0.0-beta2 #460

Closed yperess closed 7 years ago

yperess commented 7 years ago

I know this is not directly an Anko issue, but it seems to be of high interest to this library so I'm hoping that someone here will have a workaround for this. It appears that extention functions don't work across modules when using build tools 3.0.0-beta2 in Android Studio. Anko extension functions such as onClick will throw compile time errors Unresolved reference: onClick This is true for any extension functions or global functions. As soon as a function is placed into a class or object, it works again.

yperess commented 7 years ago

Looks like the bug is the use of testCoverageEnabled = true with this build tools version. Turn that off and the build will work again.