![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
gradle
文章平均质量分 64
Summer_may
这个作者很懒,什么都没留下…
展开
-
解决添加Butterknife8.8.1依赖后出错的问题
我们先依照如下方式配置ButterKnife:1.在Project的 build.gradle 中添加如下代码:classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'2.在app的 build.gradle 中添加如下代码:apply plugin: 'com.jakewharton.butterknife'(在顶部添加此行)3.在a...原创 2018-05-24 13:07:40 · 12673 阅读 · 9 评论 -
解决You should manually set the same version via DependencyResolution问题.
1.前几天添加了最新版本号为2.1.14-RC1的RxJava的依赖2.今天去添加Rx生命周期的依赖库3.添加完点击Sync Now,出现如下错误提示:Error:Execution failed for task ':app:preDebugBuild'.> Android dependency 'io.reactivex.rxjava2:rxandroid' has different ...原创 2018-05-24 16:25:55 · 18003 阅读 · 1 评论 -
在module中添加依赖后,无法在app下的module中使用问题的解决
1.在项目中新建一个module2.在app中关联这个module3.在module中引入图片变换库4.在app中使用图片变换库至此,问题就出现了,在app下的activity中,无法解析到图片变换库中的内容...解决方案:将module中引入的图片变换库的implementation更改为compile或api,再同步,即可.或者为什么呢?这是因为implementation只能用于当前的mod...原创 2018-06-30 18:29:26 · 5047 阅读 · 2 评论 -
添加RecyclerView依赖,提示This support library should not use a different version...解决方法
1.添加RecyclerView依赖提示This support library should not use a different version (25) than the compileSdkVersion (26)...解决方法:将根目录/build.gradle中subprojects的details.useVersion更改为与类库版本最好和编译版本一致的版本号,再同步.(我这里用的...原创 2018-07-02 11:09:43 · 735 阅读 · 0 评论 -
解决集成ShareSDK报错:Unable to merge dex
1.集成ShareSDK时,遇到如下问题(我是把jar包粘贴到libs下的):Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.> java.lang.RuntimeException: com.android.builder.dexing.DexArc...原创 2018-07-23 19:28:45 · 298 阅读 · 0 评论