簡體   English   中英

實現'com.android.support:appcompat-v7:28.0.0'顯示錯誤

[英]implementation 'com.android.support:appcompat-v7:28.0.0' showing an error

我在build.gradle中有此問題,此行全部在紅色實現'com.android.support:appcompat-v7:28.0.0'中,請問這是什么意思,我該如何解決?

您應該指定錯誤,而不僅僅是在代碼下提及紅線。 將鼠標懸停在該紅線上方,即可找到其背后的原因。

該錯誤很可能應該是“無法解決:com.android.support:appcompat-v7:28.0”。

首先檢查您是否已將targetSdkVersion更新為28

通常,此消息表示未找到該軟件包。

一種方法是將您正在使用的所有依賴包更新為v28。

我正在使用:

implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-media-compat:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'

我將其更改為:

implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:customtabs:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'

這應該工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM