sadegh sadegh - 3 months ago 11
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

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?

Comments