3rd-party Gradle plug-ins may be the cause

后端 未结 17 866
悲哀的现实
悲哀的现实 2020-12-07 12:00

After updating to Android Studio 3.1 I got this error message:

The project works fine and this is mostly just a warning, so my question is what\'s the meani

17条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 12:30

    at android studio v3.1.2 , happen Error:

    Folder D:\AndroidProjects\app\build\generated\source\kaptKotlin\debug
    Folder D:\AndroidProjects\app\build\generated\source\kaptKotlin\release
    3rd-party Gradle plug-ins may be the cause
    

    because dataBinding use apply plugin: 'kotlin-kapt' so add

    kapt {
        generateStubs = true
    }
    
    1. Change gradle plugin version to 3.1.2
    2. Change Kotlin version to 1.2.30
    3. Then Android studio changed gradle wrapper to version 4.4
    4. Then Android studio was saying that the build tools version used was 27.1.1 and that I should change it to 27.1.1 so I also changed the target SDK to 27

提交回复
热议问题