java.lang.ClassNotFoundException: 在 DexPathList 上未找到 class

java.lang.ClassNotFoundException: Didn't find class on DexPathList

我正在将几个 Google Play Services jar(gcm 和 auth)打包到一个用于 Android 应用程序的 Adob​​e AIR 中。我从这些播放服务库提供的 aar 文件中获得了相关的 jar。我把这些jar放到我项目的app/libs文件夹中,编译apk。但是,当我启动 apk 时,我在 logcat:

中收到此错误

java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.GooglePlayServicesUtil" on path: DexPathList[[zip file "/data/app/air.com.me.andros-1/base.apk"]

当我尝试在我的 java 代码中调用 GooglePlayServicesUtil 时,会发生此错误。但是,这个错误没有意义,因为当我使用 Apktool 对其进行逆向工程时,显然 GooglePlayServicesUtil 存在于我的 apk 中。查看这些屏幕截图:

.

有人 运行 遇到过类似的问题吗?

我解决了这个问题!
事实证明,GooglePlayServicesUtil.class 扩展了一个混淆的 class,称为 zze。此 zze.class 位于 app/build/intermediates/exploded-aar/com.google.android.gms/play-services-basement/9.4.0/。因此,在使用 Adob​​e AIR 构建最终的 apk 之前,我必须手动将包含此 zze class 的 jar 复制到我的 app/libs 文件夹中。