gpt4 book ai didi

java - 我不知道我的错误在哪里 appcompat :design:1. 1.0

转载 作者:行者123 更新时间:2023-11-30 05:18:58 25 4
gpt4 key购买 nike

应用程序兼容性:设计:1.1.0

不知道哪里错了。可能在 appcompat:design:1.1.0 但我不知道我做错了什么。顺便说一句,我是新人:)

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

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.appcompat:design:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-auth:19.2.0'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'com.google.firebase:firebase-storage:19.1.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

最佳答案

androidx.appcompat:design 不存在

删除此依赖项:

implementation 'androidx.appcompat:design:1.1.0'

并添加 Material Components Library .

Material Components for Android is a drop-in replacement for Android's Design Support Library.

添加以下依赖项之一:

implementation 'com.google.android.material:material:1.0.0' //stable release
implementation 'com.google.android.material:material:1.1.0' //stable release
implementation 'com.google.android.material:material:1.2.0-alpha03' //alpha release

关于java - 我不知道我的错误在哪里 appcompat :design:1. 1.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59846986/

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