简体   繁体   中英

Getting error while building app in android studio

  • What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.android.appcompat:appcompat:1.2.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/android/appcompat/appcompat/1.2.0/appcompat-1.2.0.pom - https://jcenter.bintray.com/com/android/appcompat/appcompat/1.2.0/appcompat-1.2.0.pom Required by: project:app

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Just replace com.android.appcompat:appcompat with androidx.appcompat:appcompat in your build.gradle file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM