android - 即使使用最新的构建工具,任务 ':app:processDebugResources' 的执行也失败

标签 android android-studio build.gradle android-resources

当我尝试运行我的项目时出现此错误。我已经安装了最新的构建工具 - 23.0.3,但错误仍然存​​在。我该如何解决这个问题?

Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources]

Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2321Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72321Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2321Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72321Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42321Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2321Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing810Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement810Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest
:app:processDebugResources
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027android:TextAppearance.Material.Widget.Button.Inverse\u0027.","sources":[{"file":"C:\\Users\\Ishmita\\Documents\\GitHub\\FurAlert-Native-Build\\app\\build\\intermediates\\res\\merged\\debug\\values-v23\\values-v23.xml","position":{"startLine":3}}],"original":"","tool":"AAPT"}

AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027android:Widget.Material.Button.Colored\u0027.","sources":[{"file":"C:\\Users\\Ishmita\\Documents\\GitHub\\FurAlert-Native-Build\\app\\build\\intermediates\\res\\merged\\debug\\values-v23\\values-v23.xml","position":{"startLine":32}}],"original":"","tool":"AAPT"}


FAILED

FAILURE: Build failed with an exception.
  • 出了什么问题: 任务 ':app:processDebugResources' 执行失败。

    com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Ishmita\AppData\Local\Android\sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

  • 试试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。

构建失败

总时间:5.901 秒

SDK manager

最佳答案

问题 SOLVED 通过使 libraryapp build.gradle 相同 ... compileSdkVersion 和 buildToolsVersion。

build.gradle

android {

    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    .....
    .....
}

应用build.gradle

android {

    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    .....
    .....
}

关于android - 即使使用最新的构建工具,任务 ':app:processDebugResources' 的执行也失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36237132/

相关文章:

Android keyDispatchingTimedOut问题

android - 谷歌API map 缩放

java - mediaplayer.start() 仅在 Motorola Droid 设备上导致应用程序崩溃

java - 用 Fragment 替换 CardView

android - 生成签名 APK : Project Name

Android Studio 集成测试无法解析符号 AndroidJUnit4

android - 将Admob集成到我的Android Studio项目中时遇到一个奇怪的问题

android - React Native Gradle 失败并显示 `java.lang.NullPointerException (no error message)`

Android Studio 和 OpenCV 'Compilation Error' , 'Cannot resolve symbol styleable'

android - Gradle 3.0 构建错误 : Execution failed for task ':app:transformClassesWithDesugarForDebug'