‘错误:无法解决:com.android.support:appcompat-v7:29.0.1’

‘错误:无法解决:com.android.support:appcompat-v7:29.0.1’,第1张

概述参见英文答案>AndroidStudiokeepsrefusingtoresolvecom.android.support:appcompat-v7:29.0.1                                    4个我想尝试Intellij平台进行Android开发,但即使在新鲜之后它也显示了gradle故障.请帮忙.我试过调

参见英文答案 > Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1                                    4个
我想尝试Intellij平台进行AndroID开发,但即使在新鲜之后它也显示了gradle故障.请帮忙.

我试过调整线

implementation 'com.androID.support:appcompat-v7:29.+'

到其他一些版本但无济于事.

这是我的模块级gradle

    apply plugin: 'com.androID.application'androID {    compileSdkVersion 29    buildToolsversion "29.0.1"    defaultConfig {        applicationID "com.example.myapplication"        minSdkVersion 23        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.+'    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'}

这是我的项目级Gradle

// 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.1.0'        // 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}

我在Intellij构建渐变时得到的错误

ERROR: Unable to resolve dependency for ':app@deBUG/compileClasspath': Could not find any version that matches com.androID.support:appcompat-v7:29.+.Show DetailsAffected Modules: appERROR: Unable to resolve dependency for ':app@deBUGAndroIDTest/compileClasspath': Could not find any version that matches com.androID.support:appcompat-v7:29.+.Show DetailsAffected Modules: appERROR: Unable to resolve dependency for ':app@deBUGUnitTest/compileClasspath': Could not find any version that matches com.androID.support:appcompat-v7:29.+.Show DetailsAffected Modules: appERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not find any version that matches com.androID.support:appcompat-v7:29.+.Show DetailsAffected Modules: appERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not find any version that matches com.androID.support:appcompat-v7:29.+.Show DetailsAffected Modules: appERROR: Failed to resolve: com.androID.support:appcompat-v7:29.0.1Affected Modules: app

解决方法:

通过转到:迁移到androIDX:

Refactor->Migrate to androIDX

总结

以上是内存溢出为你收集整理的‘错误:无法解决:com.android.support:appcompat-v7:29.0.1’全部内容,希望文章能够帮你解决‘错误:无法解决:com.android.support:appcompat-v7:29.0.1’所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1103046.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存