sadegh sadegh - 1 year ago 97
Android Question

AndroidStudio | error when create new project

When i create new project in android studio, gradle shows these three errors

enter image description here

I have installed jdk1.8 and have changed the 'Path' but this error persists.

Answer Source

1) Provide compile option in build.gradle

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8

2) Press 'install repository' and install necessary packages.

3) Show your build.gradle for the app module?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download