skip to Main Content

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

Answers


  1. 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()
    }
    
    Login or Signup to reply.
  2. According to this issue deleting

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

    file fixes this issue

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search