Execution failed for task ':app:compileDebugJavaWithJavac' Android Studio 3.1 Update

后端 未结 13 968
广开言路
广开言路 2020-12-08 06:44

I am getting error after updating the version of Android Studio 3.1 Canary 6

I don\'t why its happen, before that it\'s running successfully.

<
13条回答
  •  一个人的身影
    2020-12-08 07:02

    This worked for me!

    App/build.gradle

    //Add this....Keep both version same

    compileOptions {                                                          
        sourceCompatibility JavaVersion.VERSION_1_8 
        targetCompatibility JavaVersion.VERSION_1_8
    } 
    

提交回复
热议问题