Kotlin android extensions plugin cant parse my layouts

Plugins are loaded independently for each module so writing buildscript dependencies in the main build.gradle has no effect.

Yes, I consider to add android-v4 Fragment and widget support soon.

Any progress on this issue? I still get lot of errors in my single-page app using latest release (0.11.91.4 for kotlin plugin and gradle dependencies, 0.11.91.1 for kotlin android extensions plugin)

FYI: Fragment and widget support was added to Android Extensions a while ago, so there shouldn’t be any problems with that anymore.

Here some problem of the kotlin compile time error and given below.

Error:Execution failed for task ‘:app:compileDevAPIDebugKotlin’.

Internal compiler error. See log for more details

Please if any one help to me

@Manikandan92 You try update to EAP 1.0.4

I’m compile error but update it work

@Memory Okay, I will try to update to EAP 1.0.4

@Memory I have updated the EAP 1.0.4. But can’t resolve the issues.

Please let me know your valuable reply.

Can you show code the problem?

I got some problems when I tried to include a layout from a library project and create reference to the Views in that layout. Is that because the extension cannot work in a cross-project way? I am asking because we need to put the

classpath “org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version”

in module gradle file rather than project level gradle file.

Thanks!

Still doesn’t work for me.

I’m using it perfectly on Activity but it doens’t work on Fragment (v4 support).

The XML views are always null (unresolved reference).

ext.kotlin_version = '1.1.4-3'
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"

I am still facing this issue with Kotlin version 1.2.0.
The layout I include in my layout is located in another module though. Importing those layouts doesn’t help. Are you planning to support this in future?

1 Like