公司app 从兼容Android 8.0 升级兼容9.0
遇到的問題
1.All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.3.0, 23.4.0. Examples includecom.android.support:animated-vector-drawable:25.3.0?andcom.android.support:design:23.4.0more...?(Ctrl+F1)
?
解決辦法:
在build.gradle 中替換以前的
舊:
compile 'com.android.support:design:25.3.0'compile 'com.android.support:appcompat-v7:25.3.0'
新: compile 'com.android.support:support-v4:28.0.0'
compile 'com.android.support:design:28.0.0'
compile 'com.android.support:appcompat-v7:28.0.0'
2.
error:Error converting bytecode to dex: (字節(jié)碼轉dex錯誤? ?造成原因:com.android.dex下拋出了Dex下標越界異常:不能新下標70021合并到一個 非jumbo的結構)
Cause: com.android.dex.DexIndexOverflowException: Cannot merge new index 70021 into a non-jumbo instruction!
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
解決辦法:
在模塊的build.gradle 文件中的加上:
android { dexOptions { jumboMode true } }?
轉載于:https://www.cnblogs.com/wpgraceii/p/10668914.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的公司app 从兼容Android 8.0 升级兼容9.0的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: win10 cortana 搜索无效怎么
- 下一篇: 重载(初学)