Could not resolve com.android.support.constraint:constraint-layout:1.1.3
開發android時報Could not resolve com.android.support.constraint:constraint-layout:1.1.3這個錯誤,實際上是因為androidx放棄使用support包。
Google 2018 IO 大會推出了 Android新的擴充套件庫 AndroidX,用於替換原來的 Android擴充套件庫,將原來的android.*替換成androidx.*;只有包名和Maven工件名受到影響,原來的類名,方法名和欄位名不會更改。
1).常用依賴庫對比:
Old build artifact | AndroidX build artifact |
com.android.support:appcompat-v7:28.0.2 | androidx.appcompat:appcompat:1.0.0 |
com.android.support:design:28.0.2 | com.google.android.material:material:1.0.0 |
com.android.support:support-v4:28.0.2 | androidx.legacy:legacy-support-v4:1.0.0 |
com.android.support:recyclerview-v7:28.0.2 | androidx.recyclerview:recyclerview:1.0.0 |
com.android.support.constraint:constraint-layout:1.1.2 | androidx.constraintlayout:constraintlayout:1.1.2 |
2).常用支援庫類對比:
Support Library class | AndroidX class |
android.support.v4.app.Fragment | androidx.fragment.app.Fragment |
android.support.v4.app.FragmentActivity | androidx.fragment.app.FragmentActivity |
android.support.v7.app.AppCompatActivity | androidx.appcompat.app.AppCompatActivity |
android.support.v7.app.ActionBar | androidx.appcompat.app.ActionBar |
android.support.v7.widget.RecyclerView | androidx.recyclerview.widget.RecyclerView |
參考:
相關文章
- 【DataGuard】 TNS:could not resolve the connect identifier specifiedIDE
- Could not resolve host: 'localhost 報錯解決辦法localhost
- ORA-12154: TNS:could not resolve service name / TNS-03505: Failed to resolve nameAI
- 異常org.hibernate.QueryException: could not resolve property的原因Exception
- AndroidStudio升級報錯Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve cAndroidAPPCompile
- yml:java.lang.IllegalArgumentException: Could not resolve placeholder ‘jdbc.driverClassName‘JavaExceptionJDBC
- hadoop啟動時,報ssh: Could not resolve hostname xxx: NamHadoop
- ORA-12154: TNS:could not resolve the connect identifier specifiedIDE
- ORA-12154: TNS: could not resolve the connect identifier specifiedIDE
- Could not resolve placeholder 'redis.pool.maxTotal' in string value "${redis.pool.maxTotal}"Redis
- Centos7中Could not resolve host: mirrorlist.centos.org; 未知的錯誤"CentOS
- 記錄:yum Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error解決CloudError
- Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specifiedOracleIDE
- Could not resolve org.jetbrains.intellij.plugins:gradle-intellij-pluginAIIntelliJPluginGradle
- 1.1.3 網路管理員
- Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specifiedOracle 10gIDE
- storm(1.1.3)與kafka(1.0.0)整合ORMKafka
- 關於ORA-12154: TNS:could not resolve the connect identifier specified的問題IDE
- django rest django.core.exceptions.ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view nameDjangoRESTExceptionView
- EF:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specifiedOracleclientExceptionIDE
- gradle升級到4.1後出現的Could not resolve com.android.tools.build:gradle:3.0.1GradleAndroidUI
- LLDebugTool - 便捷的IOS除錯工具(Version 1.1.3)iOS除錯
- Xamarin iOS開發實戰1.1.3Xamarin版本iOS
- Promise.resolve() 方法Promise
- 1.1.3 python基本資料型別之元組Python資料型別
- Spring CouldSpring
- webpack系列之三resolveWeb
- apt could not get lockAPT
- VS Could not evaluate expressionExpress
- could not initialize proxy - no SessionSession
- Promise(resolve,reject)的基本使用Promise
- How to Diagnose and Resolve UNABLE TO EXTEND ErrorsError
- Oracle Management Server Could Not Be StartedOracleServer
- su - root could not open sessionSession
- vsftpd-1.1.3配製檔案vsftpd.conf(轉)FTP
- vsftpd-1.1.3配製例項之四:VIRTUAL_HOSTS(轉)FTP
- vsftpd-1.1.3配製例項之五:VIRTUAL_USERS(轉)FTP
- 【Vue】路由按需載入(路由懶載入) component: resolve => require([‘../pages/home.vue‘], resolve)Vue路由UI