gpt4 book ai didi

android - Gradle 构建完成并出现 117 个错误(Android Studio 1.4)

转载 作者:行者123 更新时间:2023-11-29 00:07:00 27 4
gpt4 key购买 nike

我刚刚创建了一个项目。这是我得到的第一页。

错误是这样的

Error:(6, 21) No resource found that matches the given name: attr 'android:textAlignment'.
Error:(10, 21) No resource found that matches the given name: attr 'android:paddingEnd'.
Error:(10, 21) No resource found that matches the given name: attr 'android:paddingEnd'.
Error:(13, 21) No resource found that matches the given name: attr 'android:paddingStart'.

on gradle console following error occurs
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027android:TextAppearance.Material.Inverse\u0027."

AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027android:TextAppearance.Material.Large.Inverse\u0027."
and many more.

最佳答案

发布您的build.gradle。我想更改您的buildToolsVersion

compileSdkVersion 23
buildToolsVersion "23.0.0"

defaultConfig {
// applicationId "package name"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
}

或将 buildToolsVersion 设置为 23.0.1

关于android - Gradle 构建完成并出现 117 个错误(Android Studio 1.4),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33150765/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com