Android Studio Bumblebee breaks build.gradle.kts

1.4k Views Asked by At

I recently upgraded to android studio bumblebee and all my .kts files are not getting picked up by the ide when using the embedded jdk. The project still builds fine but I cannot properly edit these files since the ide is not recognizing them. build.gradle.kts

ide version

If I switch the jdk version to 1.8 then everything works fine but I would like to use java 11 since that's what android studio recommends.

This is what my buildSrc looks like

buildSrc

Is this a known issue with android studio bumblebee and embedded jre or am I missing something here?

2

There are 2 best solutions below

1
On BEST ANSWER

According to this issue deleting

~/Library/Application Support/Google/AndroidStudioPreview20XX.X/options/jdk.table.xml

file fixes this issue

5
On

Try replacing the content of the build.gradle.kts(buildSrc) with the following .The following code is working for me in my current multi-module project :

import org.gradle.kotlin.dsl.`kotlin-dsl`
plugins {
    `kotlin-dsl`
}

repositories {
    gradlePluginPortal()
}