Resolving conflicts between main and test APK
来源:互联网 发布:网络线上赌博 编辑:程序博客网 时间:2024/06/07 20:21
解决方法
Resolving conflicts between main and test APK
When instrumentation tests are run, both the main APK and test APK share the same classpath. Gradle build will fail if the main APK and the test APK use the same library (e.g. Guava) but in different versions. If gradle didn’t catch that, your app could behave differently during tests and during normal run (including crashing in one of the cases).
To make the build succeed, just make sure both APKs use the same version. If the error is about an indirect dependency (a library you didn’t mention in your build.gradle), just add a dependency for the newer version to the configuration (“compile” or “androidTestCompile”) that needs it. You can also use Gradle’s resolution strategy mechanism. You can inspect the dependency tree by running ./gradlew :app:dependencies and ./gradlew :app:androidDependencies.
- Resolving conflicts between main and test APK
- Resolving conflicts between main and test APK
- codeforces 178C3 - Smart Beaver and Resolving Conflicts 线段树
- 30. Resolving Conflicts
- SVN解决冲突Resolving Conflicts
- android-Resolving Cloud Save Conflicts
- FAQ about Detecting and Resolving Locking Conflicts(oracle deadlock 学习资料-02)
- Difference between new Test() and new Test() { }
- Relation between the main stack and agent
- Intellij解决版本冲突--Resolving Conflicts
- Relationship between Test Spec and Dev Spec
- What is the difference between test, [ and [[ ?
- The main differences between Unmount , Eject and Safely Remove Drive
- test the difference between "DEFAULT NULL" and "DEFAULT 0"
- Stanford scientists test links between extreme weather and climate change
- Namespaces and name conflicts
- between...and
- between ..... and ..........
- C#学习笔记-Winform 界面笔记
- ThinkPHP框架学习之String类
- splice()方法删除数组中不连续的几项
- Cocoapods提高速度的镜像
- 安卓开发工程师必备的后台知识(Jfinal的配置和了解,VisualSVN server的配置,数据库的安装)
- Resolving conflicts between main and test APK
- python3.4实现调用opencv3.1.0显示图像
- yarn LocalResourcesTrackerImpl remove resource Error
- 辨异 —— 有两人生日在同一天、只有两人生日在同一天
- Android ViewPaper使用FragmentPagerAdapter出现的FragmentManagerImpl为空的问题
- github项目链接
- 171.Anagrams-乱序字符串(中等题)
- github上关于iOS的各种开源项目集合
- nginx启动,重启,关闭命令