aapt and :app:processDebugRecources errors



我在aapt和:app:processDebugRecources上遇到了问题。我怎样才能消除这些错误?我只在build.gradle中添加了compile 'madgaze.x5_gesture:development-kit:1.1.7.beta'。项目中的所有其他内容均未受影响

这是我的build.gradle:

apply plugin: 'com.android.application'
android {
    compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"
    buildToolsVersion "27.0.1"
    defaultConfig {
        applicationId "com.example.minttu.qr_codereader"
        minSdkVersion 19
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    compile 'madgaze.x5_gesture:development-kit:1.1.7.beta'
}

这是我得到的所有错误:

Error:resource android:style/TextAppearance.Material not found.
Error:resource android:style/TextAppearance.Material.Body1 not found.
Error:resource android:style/TextAppearance.Material.Body2 not found.
Error:resource android:style/TextAppearance.Material.Button not found.
Error:resource android:style/TextAppearance.Material.Caption not found.
Error:resource android:style/TextAppearance.Material.Display1 not found.
Error:resource android:style/TextAppearance.Material.Display2 not found.
Error:resource android:style/TextAppearance.Material.Display3 not found.
Error:resource android:style/TextAppearance.Material.Display4 not found.
Error:resource android:style/TextAppearance.Material.Headline not found.
Error:resource android:style/TextAppearance.Material.Inverse not found.
Error:resource android:style/TextAppearance.Material.Large not found.
Error:resource android:style/TextAppearance.Material.Large.Inverse not found.
Error:resource android:style/TextAppearance.Material.Widget.PopupMenu.Large not found.
Error:resource android:style/TextAppearance.Material.Widget.PopupMenu.Small not found.
Error:resource android:style/TextAppearance.Material.Medium not found.
Error:resource android:style/TextAppearance.Material.Medium.Inverse not found.
Error:resource android:style/TextAppearance.Material.Menu not found.
Error:resource android:style/TextAppearance.Material.SearchResult.Subtitle not found.
Error:resource android:style/TextAppearance.Material.SearchResult.Title not found.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt

对于这些错误,Gradle 控制台会显示以下文本:

* `What went wrong:`
    Execution failed for task ':app:processDebugResources'.
    > Failed to execute aapt

到目前为止我尝试过:将android.enableAapt2=false添加到 gradle.properties 并从构建菜单中清理项目

看起来该库至少需要 compileSdkVersion 23。

相关内容

  • 没有找到相关文章

最新更新