API 28级支持库编译错误

时间:2019-05-20 07:01:31

标签: java android

我的应用程序未编译,样式文件中显示许多不同的错误。.我找不到下面的错误是我的文件和gradle文件

错误

build failed    1s 455ms
Run build   1s 337ms
Load build  3ms
Configure build 236ms
Calculate task graph    32ms
Run tasks   1s 59ms
null    
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.  
resource style/Animation.AppCompat.Dialog (aka com.cmdoverride.android.stringloop:style/Animation.AppCompat.Dialog) not found.  
resource style/Theme.AppCompat.Light.DarkActionBar (aka com.cmdoverride.android.stringloop:style/Theme.AppCompat.Light.DarkActionBar) not found.    
resource style/ThemeOverlay.AppCompat.Dark.ActionBar (aka com.cmdoverride.android.stringloop:style/ThemeOverlay.AppCompat.Dark.ActionBar) not found.    
resource style/ThemeOverlay.AppCompat.Light (aka com.cmdoverride.android.stringloop:style/ThemeOverlay.AppCompat.Light) not found.  
null    
C:/Users/user/Desktop/StringloopAudioPlayer/Stringloop  
app/src/main/res    
../../../.gradle/caches/transforms-1/files-1.1/support-compat-28.0.0.aar/459514e44e205546d9674ed2a3b4bfea/res/values-v21/values-v21.xml 
../../../.gradle/caches/transforms-1/files-1.1/design-28.0.0.aar/ae31df14b3b78df7cc3f1191847843c1/res/values/values.xml

build.gradle

  android {
        compileSdkVersion 28
        defaultConfig {
            applicationId "com.cmdoverride.android.stringloop"
            minSdkVersion 21
            targetSdkVersion 28
"android.support.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
        compileOptions {

            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }


            androidTest.setRoot('tests')
            androidTest.java.srcDirs = ['tests/src']

        }


    }

    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation "com.android.support:support-v4:28.0.0"
        implementation "com.android.support:support-v13:28.0.0"
        implementation "com.android.support:cardview-v7:28.0.0"
        implementation 'com.android.support:appcompat-v7:28.0.0'
        implementation 'com.android.support:design:28.0.0'



        implementation 'com.android.support.constraint:constraint-layout:1.1.3'

        implementation 'com.google.firebase:firebase-database:16.0.1'
        implementation 'com.google.firebase:firebase-core:16.0.1'
        implementation 'com.firebaseui:firebase-ui-database:3.2.1'
        implementation 'com.firebaseui:firebase-ui-auth:4.1.0'

请帮助我在gradle文件中出了什么问题,我找不到在问题.thank中创建的版本

0 个答案:

没有答案