It’s impossible to change the version of the project’s API to 25. With the help of the Android SDK, I downloaded the version of API 25 and in the properties of the project it doesn’t change it, maximum 24. If you manually replace the errors in build.gradle by 25. The JDK version costs 1.8.

enter image description here

enter image description here

build.gradle:

apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "com.ann.myhouse" minSdkVersion 14 targetSdkVersion 24 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) // compile 'com.android.support:appcompat-v7:24.2.1' testCompile 'junit:junit:4.12' compile 'com.android.support:recyclerview-v7:25.0.0' compile 'com.android.support:cardview-v7:25.0.0' compile 'com.android.support:design:25.0.0' compile 'com.jakewharton:butterknife:8.4.0' apt 'com.jakewharton:butterknife-compiler:8.4.0' compile 'com.thoughtbot:expandablerecyclerview:1.0' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'de.hdodenhof:circleimageview:2.0.0' } 
  • one
    Throw off your build.gredl - Flippy
  • added code grad - Anna

2 answers 2

After the computer restarts, the problem does not reproduce

    You must match the major versions of these pieces:

     buildToolsVersion compileSdkVersion targetSdkVersion 

    As well as the versions of libraries support com.android.support:...

    Those. when upgrading from 24 to 25, you should have all of the above 25 versions

    • yes they are the same - Anna