当前位置:网站首页>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 .
边栏推荐
- libgstreamer-1.0. so. 0: cannot open shared object file: No such file or directory
- logback
- Leetcode connected to rainwater series 42 (one dimension) 407 (2D)
- Tensorflow dynamically allocates video memory
- Problems encountered by jupyter notebook
- 2. merge two ordered arrays
- 2. 合并两个有序数组
- Appium automation test foundation - mobile end test environment construction (II)
- The basis of C language grammar -- function nesting, Fibonacci sum of recursive applet and factorial
- Does the go compiled executable have dynamic library links?
猜你喜欢

The first batch of 12 enterprises settled in! Opening of the first time-honored product counter in Guangzhou

Use of exec series functions (EXECL, execlp, execle, execv, execvp)

Win10安装tensorflow-quantum过程详解

Extracting public fragments from thymeleaf

Cloud native essay using Hana expression database service on Google kubernetes cluster

DAY 3 数组,前置后置,字符空间,关键词和地址指针

Appium automation test foundation - mobile end test environment construction (II)

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

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

118. Yanghui triangle
随机推荐
Jupyter Notebook遇到的问题
Redis novice introduction
Download MySQL database installation package website of each system and version
【Leetcode】76. Minimum covering substring
Learning and understanding of thread pool (with code examples)
Omni channel, multi scenario and cross platform, how does app analyze channel traffic with data
Differences between JVM, Dalvik and art
Cento7.7 elk installation simple record
全渠道、多场景、跨平台,App如何借助数据分析渠道流量
Cloud native essay using Hana expression database service on Google kubernetes cluster
Glide's most common instructions
Meaning of go runtime
Solution to network request crash in retrofit2.8.1
Deep learning (tentsorflow2. version) three good student performance problems (1)
String constant pool, class constant pool, and runtime constant pool
Constraintlayout control uses full Raiders
JVM垃圾回收什么情况会进入老年代
The basis of C language grammar -- function nesting, Fibonacci sum of recursive applet and factorial
Use of exec series functions (EXECL, execlp, execle, execv, execvp)
Luogu 1146 coin flip