Android 5.1上MultiDex异常: DexPathList NoSuchMethodException makeDexElements

参考自:http://stackoverflow.com/questions/34082042/android-marshmallow-dexpathlist-nosuchmethodexception-makedexelementsandroid

Google在5.1后修改了makeDexElement的方法名,因此需作以下修改:ui

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);
相关文章
相关标签/搜索