当前位置:网站首页>Solution to the problem of compilation error due to repeated third-party package names
Solution to the problem of compilation error due to repeated third-party package names
2022-06-26 10:15:00 【Shake half a bottle of vinegar】
I wonder if there is something wrong with the method I use , Simultaneous introduction QQ Third party libraries for sharing and wechat sharing , Because the package name is duplicate , Cause compilation times com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 2 Error of . To solve this problem ,
stay gradle Add... To the file multiDexEnabled true attribute . Here's an introduction multiDexEnabled The concept of .
multiDexEnabled, namely many dex Support , Used to solve the problem of duplicate package names of third-party libraries , Or the program is too big , exceed 65536 Resulting problems . In the use of multiDexEnabled Attribute , Need to application Inherit MultiDexApplication class , perhaps Overwrite the Application Medium attachBaseContext() Method , Increase in MultiDex.install(this);
This solution has not found any problems for the time being , When a problem occurs, it will be added here . If someone uses it like this, it will cause other problems , Please comment and remind , thank you .
边栏推荐
- jar版本冲突问题解决
- The basis of C language grammar -- pointer (multidimensional array, function, summary) learning
- thymeleaf中抽取公共片段
- 自动化测试——pytest框架介绍及示例
- Redis notes (13) - scan and keys search for specific prefix key fields (command format, usage examples, locating large keys)
- Redis master-slave replication in win10 system
- The IE mode tab of Microsoft edge browser is stuck, which has been fixed by rolling back the update
- 方法区里面有什么——class文件、class文件常量池、运行时常量池
- 118. 杨辉三角
- Svn command
猜你喜欢

全渠道、多场景、跨平台,App如何借助数据分析渠道流量

druid数据源实现后台监控

【Leetcode】76. 最小覆盖子串

字符串常量池、class常量池和运行时常量池

3行3列整形二维数组,求对角之和

String constant pool, class constant pool, and runtime constant pool

Some problems to be considered when designing technical implementation scheme

Basic grammar of C language -- pointer (character, one-dimensional array) learning

String constant pool, class constant pool, and runtime constant pool

Solution to network request crash in retrofit2.8.1
随机推荐
Appium automation test foundation - mobile end test environment construction (II)
Jupyter Notebook遇到的问题
What are the symbolic and direct references of the JVM
1. sum of two numbers (leetcode topic)
Why do some functions in the go standard library have only signatures but no function bodies?
[binary search] 4 Find the median of two positive arrays
When will JVM garbage collection enter the older generation
P1296 whispers of cows (quick row + binary search)
【LeetCode】59. 螺旋矩阵 II
Redis novice introduction
3行3列整形二维数组,求对角之和
The basis of C language grammar -- function nesting, Fibonacci sum of recursive applet and factorial
【深度优先搜索】312.戳气球
[untitled]
TensorFlow动态分配显存
Getting started with Flink - word statistics
Luogu 1146 coin flip
Automated testing -- Introduction and example of pytest framework
国际化配置
118. Yanghui triangle