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 一下就可以了。