android sdk tools 中没有Support Repository,Could not find com.android.support.constraint:constraint-lay

android studio sdk tools 中找不到Support Repository,实际上是因为androidx放弃使用support包。

Google 2018 IO 大会推出了 Android新的扩展库 AndroidX,用于替换原来的 Android扩展库,将原来的android.*替换成androidx.*;只有包名和Maven工件名受到影响,原来的类名,方法名和字段名不会更改。

/sdk/extras/android/m2repository/com/android/support
只要找到Android sdk 目录,可能在android x 中已经不支持support 库,所以连其下载也一并砍掉了,但是我运行个demo 也不至于强行给他转移到 android x吧。

谷歌就是个坑。

目前我的解决办法是从之前的开发环境找到目录

附带文件下载链接。我打包了。  https://download.csdn.net/download/kaifei2018/16729246

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
As an AI language model, I don't have access to the specific details of your project or environment. However, here are some general steps you can take to resolve this error: 1. Check your internet connection: Make sure you have a stable internet connection and try re-syncing your project with Gradle by clicking on the "Sync Now" button in the toolbar. 2. Check your Gradle version: Make sure you have the latest version of Gradle installed. You can check the version of Gradle in your project by opening the Gradle panel (located on the right side of the Android Studio window) and looking for the version number. 3. Update your Gradle settings: If you're using an older version of Gradle, you may need to update your Gradle settings to support the latest version of the Android Gradle plugin. You can do this by updating the "build.gradle" file in your project. 4. Check the repository configuration: Make sure that the repository configuration in your "build.gradle" file is correct and up-to-date. You can check the latest version of the Android Gradle plugin and make sure it's included in your repository configuration. 5. Use a stable version: If you're still having trouble with the alpha version, try using a stable version of the Gradle plugin instead. You can do this by updating your "build.gradle" file and specifying a stable version of the Gradle plugin. If none of these steps work, you may need to seek further assistance from the Android community or consult the official documentation.
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值