错误:未能解析:com.android.support:appcompat-v7:29.0.0
我已经安装了安卓3.4.1,之后我正在安装安卓sdk 29 之后,停止并显示此错误 错误:未能解析:com.android.support:appcompat-v7:29.0.0 你能帮帮我吗 构建梯度模块 应用插件:“com.android.application” 建造花园工程错误:未能解析:com.android.support:appcompat-v7:29.0.0,android,gradle,Android,Gradle,我已经安装了安卓3.4.1,之后我正在安装安卓sdk 29 之后,停止并显示此错误 错误:未能解析:com.android.support:appcompat-v7:29.0.0 你能帮帮我吗 构建梯度模块 应用插件:“com.android.application” 建造花园工程 随着Android 9.0(API级别28)的发布,出现了一个新版本的支持库,名为,它是的一部分 Support Library版本28.0.0将是android下的最后一个功能版本。Support打包,鼓励开发人员
随着Android 9.0(API级别28)的发布,出现了一个新版本的支持库,名为,它是的一部分 Support Library版本28.0.0将是android下的最后一个功能版本。Support打包,鼓励开发人员迁移到 您可以继续使用支持库。历史工件(版本为27及更早,打包为
android.support.*
)仍将在Google Maven上可用。然而,所有新的图书馆发展都将发生在图书馆中
有关androidx的更多信息,请参阅没有支持lib 29.0.0的Hanks Basi,我得到了它。那么你用什么替换了它?我尝试了“实现‘androidx.appcompat.app:29.0.0’”,但我遇到了一个“无法解决”错误。不支持lib版本29.0。0@rmutalik您必须将项目转换为
androidX
adding:org.gradle.jvmargs=-Xmx1536m android.useAndroidX=true android.enableJetifier=true to格雷德尔,你成功了
android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "com.example.testing"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:29.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}