资源链接失败,错误:资源android:attr / dialogCornerRadius未找到

时间:2019-10-10 16:34:43

标签: android gradle build.gradle android-support-library android-resources

当我集成Stripe库时,它会创建链接资源     SDK版本导致的问题。当我升级我的SDK版本时     从v7:27.1.1到v7:28.0.0并将我的编译SDK版本更改为28         问题得到解决,然后在清单文件中引起问题。
为此SDK版本添加该库,但不能解决问题。

build.gradle文件:

configurations.all {
    resolutionStrategy {
        force 'com.android.support:support-v4:27.1.1'
    }}

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.goldtech.linkbreed"
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner 

    "android.support.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }


    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.android.support:design:27.1.1'
        implementation 'de.hdodenhof:circleimageview:3.0.0'

        //  for slider images
        implementation 'com.github.smarteist:autoimageslider:1.3.2-appcompat'
        implementation 'com.stripe:stripe-android:11.2.0' // stripe  payment

        implementation 'com.jakewharton:butterknife:8.6.0'
        annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'

        implementation 'com.github.shts:StoriesProgressView:3.0.0' //  for stories
        implementation 'com.allattentionhere:autoplayvideos:0.2.0' // for video in recyclerview

        //  indicator //
        implementation 'com.wang.avi:library:2.1.3'

    implementation 'com.github.bumptech.glide:glide:3.8.0'

        implementation 'com.android.volley:volley:1.1.1'

        //////////////   exoplayer  //////////////////////

        implementation 'com.google.android.exoplayer:exoplayer:r2.4.0'
        implementation 'com.google.android.exoplayer:exoplayer-core:r2.4.0'
        implementation 'com.google.android.exoplayer:exoplayer-dash:r2.4.0'
        implementation 'com.google.android.exoplayer:exoplayer-hls:r2.4.0'
        implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:r2.4.0'
        implementation 'com.google.android.exoplayer:exoplayer-ui:r2.4.0'


        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        implementation 'com.android.support:support-v4:27.1.1'
        //implementation 'com.google.firebase:firebase-crash:11.8.0'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.2'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    }

    apply plugin: 'com.google.gms.google-services'

1 个答案:

答案 0 :(得分:0)

由于compileSdkVersion和库版本不匹配而发生此错误。 将28更改为android { compileSdkVersion 28 ... }

Public WithEvents GExplorer As Outlook.Explorer
Public WithEvents GMailItem As Outlook.MailItem

Private Sub Application_Startup()
    Set GExplorer = Outlook.Application.ActiveExplorer
End Sub

Private Sub GExplorer_SelectionChange()
    Dim xItem As Object
    On Error Resume Next
    Set xItem = GExplorer.Selection.Item(1)
    If xItem.Class <> olMail Then Exit Sub
    Set GMailItem = xItem
End Sub

Private Sub GMailItem_Reply(ByVal Response As Object, Cancel As Boolean)
    AutoAddGreetingToReply Response
End Sub

Private Sub GMailItem_ReplyAll(ByVal Response As Object, Cancel As Boolean)
    AutoAddGreetingToReply Response
End Sub

Sub AutoAddGreetingToReply(Item As Object)
    Dim xGreetStr As String
    Dim xReplyMail As MailItem
    Dim xSenderName As String
    Dim xRecipient As Recipient
    On Error Resume Next
    If Item.Class <> olMail Then Exit Sub
    Set xReplyMail = Item
    For Each xRecipient In xReplyMail.Recipients
        If xSenderName = "" Then
            xSenderName = xRecipient.Name
        Else
            xSenderName = xSenderName & "," & xRecipient.Name
        End If
    Next xRecipient
    Select Case Time
           Case 0.3 To 0.5
                xGreetStr = " Good morning, thank you for your email."
           Case 0.5 To 0.75
                xGreetStr = " Good afternoon, thank you for your email."
           Case Else
                xGreetStr = " Good evening, thank you for your email."
    End Select
    With xReplyMail
        .Display
        .HTMLBody = "<HTML><Body>Dear " & xSenderName & ",</HTML></Body>" & xGreetStr & .HTMLBody
    End With
End Sub