androidv7報錯
⑴ Could not find any version that matches com.android.support:appcompat-v7:30.+.報錯處理方法
Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.
Open File
Show Details
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:30.+'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
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'
}
改後再重新編譯就沒問題了,見加粗語句:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:+'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
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'
}
⑵ Android Studio項目 v7包版本和依賴庫v7包版本不一致警告怎麼解決
默認使用最新版本
否則library moudle引入源碼改版本
⑶ 在eclipse中創建Android項目是 有V7 錯誤 怎麼解決這個錯誤啊!急急急急 在線等!
你看看什麼錯了,是不是少了什麼包沒引用,還是V4和版本不不要問,v7和你的項目都會引V4這個jar如果版本不一樣也會報錯的
⑷ 導入工程後有The import android.support.v7 cannot be resolved。錯誤,並且style也報錯
把庫項目的supportjar包刪了試試
⑸ AndroidStudio打包報錯集合與解決方案
報錯內容:AAPT: error: resource style/Theme.AppCompat.Light.Dialog.Alert (aka com.unity3d.player:style/Theme.AppCompat.Light.Dialog.Alert) not found.
error: failed linking references.
原因:缺少需要使用的v7包
解決方案:
在build.gradle中的dependencies屬性里添加
implementation 'com.android.support:appcompat-v7:26.0.0'
⑹ android新建項目同事出現appcompat_v7這樣一個項目,但是兩個都會報錯
是因為4.4以上sdk需要和之前的兼容,所以每次新建項目的時候它會創建一個eclipse appcompat_v7 的新項目,解決辦法就是,你新建項目的時候,所有的版本都選擇4.4就OK了
⑺ android 新建項目時 appcompat_v7報錯
Android 新建的項目如果minSDKVersion小於14,默認會引入v7包,由於SDK未更新的原因造成v7包下的style找不到ID等情況
解決方案,直接更新SDK,但是國內已經無法正常的更新和下載SDK了
需要作幾個設置:
使用國內鏡像 鏡像地址在附件中埠80
使用工具進行連接
設置Eclipse的更新地址 將地址設置為 本機 8580
重新打開SDK Manager 將需要更新或者下載的選項勾上並按 Install Packages即可。
當SDK更新完以後,將舊的appcompat_v7刪除掉,重新new一人android project即可自動生成appcompat_v7
⑻ eclipse新建activity後報錯,android.support.v7.app報錯
/sdk/extras/android/support/v7 這個路徑下有一個appcompat項目將他引入你的eclipse,如果eclipse有就不用引入了。
選擇你的項目右鍵Properties-Android-Add 選擇appcompat_v7。
看看你的項目libs裡面是否存在android-support-v4.jar,如果存在刪除掉。
⑼ Android studio 打包APK V7包出錯
我沒記錯的話,即使這樣也能運行吧,打包apk報錯的話,那麼在gradle中設置忽略警告應該是沒問題了,在android{}中加入這個試試看
lintOptions {
checkReleaseBuilds false
abortOnError false
}
⑽ android-support-v7-appcompat 小紅叉叉 解決方案
更新了ADT後,這個小紅叉叉讓我很是頭疼,網上找一圈後發現解決辦法如下:
先是打開Window-> Android SDK Manager
接著,對著android-support-v7-appcompat ,右擊-> Properties->
將Project Build Target 選擇對應的版本號,這里應該選擇 Android 6.0,23號版本。如圖。
最後,Project -> Clean 一下就可以了。