android studio项目报错errorjack is required to support java 8 language features either enable jack or remove sourcecompatibility javaversion version_1_8

  • A+
所属分类:Android

---
title: "android studio项目报错:Error:Jack is required to support java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8"
date: 2018-12-03 12:19:13
categories: android
tags:
- 报错
- remove
- java
- gradle
- 项目
- android
- build
- Required
- Studio
- Jack
- support
- language
- features
- sourceCompatibility
- JavaVersion
- defaultConfig
- enabled
- jackOptions
---

android studio项目报错:

 Error:Jack is required to support java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8

解决方法:
在build.gradle文件的defaultConfig中添加一下就可以了..

android studio项目报错errorjack is required to support java 8 language features either enable jack or remove sourcecompatibility javaversion version_1_8

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: