实施'com.android.support:appcompat-v7:28.0.0' [英] implementation 'com.android.support:appcompat-v7:28.0.0'

查看:194
本文介绍了实施'com.android.support:appcompat-v7:28.0.0'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在着手进行应用程序编程.

I am moving my first steps with app programming.

我搜索了与此问题相关的其他主题,并尝试了所有解决方案,但仍然让我发疯:

I searched the other topics that relate to this matter and tried all the solutions but still it's driving me mad:

在Android Studio上构建,我无法通过关于

building on Android Studio I cannot make it through this error about

implementation 'com.android.support:appcompat-v7:28.0.0' :

所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃).

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes).

找到的版本28.0.026.1.0.

示例包括

com.android.support:animated-vector-drawable:28.0.0

com.android.support:support-v4:26.1.0

存在一些库,工具或库的组合,这些组合不兼容或可能导致错误.一种不兼容的情况是使用不是最新版本(或特别是低于targetSdkVersion的版本)的Android支持库版本进行编译.

There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion).

如果我使用命令"noinspection"将其忽略,则apk不会在我的手机上运行.我试图在示例行中添加一些依赖项,但目前并不能正常工作,因为如果添加支持版本4:26.1.0,它告诉我它不是最新版本,并且如果我将其升级为7,则表明它不是最新版本: 28.0.0也不起作用.

if i ignore it with the command "noinspection" then the apk does not run on my phone. I tried to add some dependencies like in the example line but it doesn't work at this point i show above, because if add "support version 4:26.1.0 it tells me it's not the latest and if i upgrade it writing 7:28.0.0 it doesn't work either.

有人可以帮我吗? 谢谢您的时间!

Can anyone help me please? Thank you for your time!

这是我的build.gradle https://www.dropbox.com/sh/1vjmrh196bdy5gn/AADW -DG1YB10s-Csw_UrZtuYa?dl = 0

this is my build.gradle https://www.dropbox.com/sh/1vjmrh196bdy5gn/AADW-DG1YB10s-Csw_UrZtuYa?dl=0

我在下面应用了建议(谢谢!),错误不再显示,但是我的应用仍然在模拟器和设备(银河a6 +)中崩溃.

I applied suggestions below (THANKS!!) and the error is not showing anymore, BUT my app still crashes both in emulator and in my device (galaxy a6+).

推荐答案

在您的计算机中添加implementation 'com.android.support:support-v4:28.0.0' 摇动

作为旧版本的 com.android.support:support-v4:26.1.0 已从其他库中导入,这导致了 com.android.support的问题: appcompat-v7:28.0.0 ,类似地添加此之后的其他实现. 所以最终就像

as an old version of com.android.support:support-v4:26.1.0 is there imported by some other library which is causing the issue with com.android.support:appcompat-v7:28.0.0, similarly add the other implementations that occur after this one. so final would be like

implementation 'com.android.support:appcompat-v7:28.0.0' 
implementation 'com.android.support:support-v4:28.0.0'

这篇关于实施'com.android.support:appcompat-v7:28.0.0'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆