problems after installing java 8

后端 未结 4 2054
谎友^
谎友^ 2020-12-07 01:11

Android Studio had a popup telling updates was available after i run the SDK manager and started the Android Studio again I got another popoup that toke me to Androids websi

相关标签:
4条回答
  • 2020-12-07 01:17

    Using Android SDK Manager, I removed my last update of Android SDK Build-Tools v.25 remaining with the previous one: v.23.0.3....

    ...now it's working as it should do!!!

    0 讨论(0)
  • 2020-12-07 01:21

    This problem is related with your SDK, not with your JDK. You can check your version information from

    Help > About > Show Details

    You will get something like

    Xamarin.Android Version: 6.0.2.1 (Starter Edition) Android SDK: X:\Android\android-sdk

    Supported Android versions:

    4.0.3 (API level 15)

    4.4 (API level 19)

    6.0 (API level 23)

    SDK Tools Version: 24.4.1

    SDK Platform Tools Version: 23.0.1

    SDK Build Tools Version: 24 rc2

    Java SDK: X:\Program Files (x86)\Java\jdk1.7.0_71

    java version "1.7.0_71"

    Java(TM) SE Runtime Environment (build 1.7.0_71-b14)

    Java HotSpot(TM) Client VM (build 24.71-b01, mixed mode, sharing)

    If you are using preview tools for building ,then you will get similar errors all over.

    What to do now?

    Tools -> SDK manager

    1. Select all items in preview channels including Android SDK build tools with rev 24rc2 or 24rc4(latest)

    2. Click on Delete 'n' packages

    How to turn off preview channel

    1. In SDK manager, select

      Tools > options

    2. Uncheck Enable preview tools

    And what

    Back to your code Clean all and rebuild

    0 讨论(0)
  • This problem occurs when you update to Android Studio to 2.0.

    To solve this problem:

    • Open build.gradle file
    • Change buildToolsVersion "24.0.0 rc1" to buildToolsVersion "23.0.2"

    Happy coding.

    0 讨论(0)
  • 2020-12-07 01:30

    The problem is in the buildToolsVersion '24.0.0 rc1' after changing it to '23.0.2' I no longer get errors.

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