enter image description here

Content values-v24.xml:

<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Base.TextAppearance.AppCompat.Widget.Button.Borderless.Colored" parent="android:TextAppearance.Material.Widget.Button.Borderless.Colored"/> <style name="Base.TextAppearance.AppCompat.Widget.Button.Colored" parent="android:TextAppearance.Material.Widget.Button.Colored"/> <style name="TextAppearance.AppCompat.Notification.Info.Media"/> <style name="TextAppearance.AppCompat.Notification.Media"/> <style name="TextAppearance.AppCompat.Notification.Time.Media"/> <style name="TextAppearance.AppCompat.Notification.Title.Media"/> </resources> 

build.gradle:

 apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '24.0.2' defaultConfig { applicationId "com.example.finderproject" minSdkVersion 17 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.google.android.gms:play-services:11.0.4' } 

If anyone came across, tell me: how to fix it?

  • one
    Add the contents of values-v24.xml to the question. - eugeneek
  • one
    build.gradle attach too - Android Android

1 answer 1

Most likely you have a version of compileSdkVersion does not match the version of the support library

That is, if compileSdkVersion 25 , then the support version of the library should be something like:

 compile 'com.android.support:support-v4:25.3.1' compile 'com.android.support:appcompat-v7:25.3.1' 

The main compileSdkVersion that the major version (here 25) coincides with compileSdkVersion



    Source: https://ru.stackoverflow.com/questions/703496/


    All Articles