Unresolved reference: kotlinx

前端 未结 14 2674
无人及你
无人及你 2020-11-29 02:31

I am trying to try out Kotlin and the Kotlin Android extensions in Android Studio. I have tried this both in Android Studio v 1.5.1 on Ubuntu 14.04, and in Android Studio v

相关标签:
14条回答
  • 2020-11-29 03:23

    This is how it worked for me. When I first configured Kotlin in Project, I selected the 1.1.2-3 version instead of 1.1.2-4 and added the following line in the build.gradle app file

    apply plugin: 'kotlin-android-extensions'
    

    after that I synced the build and it worked as expected.

    0 讨论(0)
  • 2020-11-29 03:23

    I found out that I had support for C++ and Kotlin at the same time which was causing build problems.

    When starting a new project, ensure C++ support is unchecked, and Kotlin support is checked. That fixed the problem for me.

    0 讨论(0)
提交回复
热议问题