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);
相關文章
相關標籤/搜索