java.lang.BootstrapMethodError: Exception from call site #4 bootstrap method ,when initializing Retrofit

后端 未结 1 1585
夕颜
夕颜 2020-12-16 10:36

I am using retrofit to get sample data from \"https://jsonplaceholder.typicode.com/comments\" but I am getting this error:

2020-03-31 16:33:12.011 8140-8140/         


        
相关标签:
1条回答
  • 2020-12-16 11:00

    add

      compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    

    in your gradle file.

    0 讨论(0)
提交回复
热议问题