aapt和:app:processDebugRecources错误

时间:2017-11-18 17:50:26

标签: android-studio resources aapt aero-glass

我遇到了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并从构建菜单中清除项目

1 个答案:

答案 0 :(得分:0)

看起来这个库需要至少23个compileSdkVersion。

相关问题