我是 Android Studio 的新手。我在编码部分遇到问题。运行代码时显示错误。 Thw gradle部分如下所示
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.fallprediction"
minSdkVersion 14
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.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'android.support:support.v7:29.0.2'
}
错误是 错误:无法解决:android.support:support.v7:29.0.2 在项目结构对话框中显示 受影响的模块:应用程序
请帮我解决这个错误
最佳答案
将其转换为 androidx 或删除此依赖实现 'android.support:support.v7:29.0.2
关于java - 错误: Failed to resolve: android.支持:support. v7 :29. 0.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60248498/