org.gradle.api.UncheckedIOException: Failed to capture snapshot of input

后端 未结 6 720
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 18:02

I was trying to build my project again after installing the latest preview version of android studio, but follow exception is showing on updating the gradle version:

6条回答
  •  囚心锁ツ
    2020-12-05 18:55

    In my case it fixed by adding:

    android {
        ...
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8  // <= add this
            targetCompatibility JavaVersion.VERSION_1_8  // <= add this
        }
    }
    

    to android/app/build.gradle file

提交回复
热议问题