Android 5.1上MultiDex异常: DexPathList NoSuchMethodException makeDexElements
生活随笔
收集整理的這篇文章主要介紹了
Android 5.1上MultiDex异常: DexPathList NoSuchMethodException makeDexElements
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
參考自:http://stackoverflow.com/questions/34082042/android-marshmallow-dexpathlist-nosuchmethodexception-makedexelements
Google在5.1后修改了makeDexElement的方法名,所以需做如下修改:
Method makeDexElements = Build.VERSION.SDK_INT >= 23 ?findMethod(dexPathList, "makePathElements", List.class, File.class, List.class) :findMethod(dexPathList, "makeDexElements", ArrayList.class, File.class, ArrayList.class);轉載于:https://my.oschina.net/u/3026396/blog/837145
總結
以上是生活随笔為你收集整理的Android 5.1上MultiDex异常: DexPathList NoSuchMethodException makeDexElements的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 软件开发本质论——自然之路
- 下一篇: dubbo2.5-spring4-myb