Android Studio: Buildtools 24.0.1 requires Java 1.8 or above.

后端 未结 3 1850
有刺的猬
有刺的猬 2020-12-17 14:20

I\'m trying to setup an Android dev environment on Mac.

My starting point is Java 1.7 I believe. So I installed android studio and opened the project I\'d like to b

相关标签:
3条回答
  • 2020-12-17 15:04

    On a Mac just double-click on the app and a new modal windows will show. Then select 'Open Module Setting' and go to 'SDK Location'.

    0 讨论(0)
  • 2020-12-17 15:10

    Make sure your JDK Version through Project Structure

    You can add this in your gradle section

        compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
      }
    
    0 讨论(0)
  • 2020-12-17 15:10

    Click project structure -> app -> in properties change the (compile Sdk Version ) to google API's 23 . and in build tools Version = 22.0.1

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