invokedynamic requires --min-sdk-version >= 26

后端 未结 5 513
天涯浪人
天涯浪人 2020-12-28 12:08

Today downloaded the studio 3.0 beta 2.0 version, after that tried to open an existing project in it and faced some difficulties, most of them I could solve with the help of

5条回答
  •  清歌不尽
    2020-12-28 12:40

    It is important part:

    You need to add this in that module's build.gradle where it's not added like app module.

    android {
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
    }
    

    Also you forgot to add repo for plugin:

    buildscript {
        repositories {
            jcenter()
            google()
        }
    }
    

提交回复
热议问题