【问题标题】:Android Marshmallow DexPathList NoSuchMethodException makeDexElementsAndroid Marshmallow DexPathList NoSuchMethodException makeDexElements
【发布时间】:2015-12-04 06:14:50
【问题描述】:
Android Marshmallow DexPathList  NoSuchMethodException makeDexElements with parameters [class java.util.ArrayList, class java.io.File, class java.util.ArrayList] not found in class dalvik.system.DexPathList

但是Android5.1是可以的,从哪里可以下载AndroidMarshmallow DexPathList的源码?

【问题讨论】:

  • link 你在找这样的东西吗?
  • @ShvetChakra 是 ICS,不是 Marshmallow,而是谢谢!

标签: java android android-6.0-marshmallow


【解决方案1】:

这是因为 Google 更改了 Marshmallow 上的方法名称和签名,这是可行的解决方案:

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);

【讨论】:

  • 能否链接或提供findMethod的来源?
猜你喜欢
  • 2013-07-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-10-10
相关资源
最近更新 更多