无法解析Landroid/support/v4的超类。

时间:2021-11-13 05:21:35

After installing my app, it only runs the first time correctly and after that it crashes every time. All needed dependencies are included and up-to-date. I already tried to clean the project and rebuild it with different version of the libraries and on different devices.

在安装了我的应用程序后,它只会正确运行第一次,然后每次都崩溃。所有需要的依赖项都包括并且是最新的。我已经尝试过清理这个项目,用不同版本的库和不同的设备来重新构建它。

Logcat:

Logcat:

02-20 04:45:50.830    1052-1052/xxx W/dalvikvm﹕ Unable to resolve superclass of Landroid/support/v4/app/ActivityCompat21$SharedElementCallbackImpl; (58)
02-20 04:45:50.830    1052-1052/xxx W/dalvikvm﹕ Link of class 'Landroid/support/v4/app/ActivityCompat21$SharedElementCallbackImpl;' failed
02-20 04:45:51.160    1052-1052/xxx W/dalvikvm﹕ Unable to resolve superclass of Landroid/support/v4/app/FragmentTransitionCompat21$1; (1078)
02-20 04:45:51.160    1052-1052/xxx W/dalvikvm﹕ Link of class 'Landroid/support/v4/app/FragmentTransitionCompat21$1;' failed
02-20 04:45:51.180    1052-1052/xxx W/dalvikvm﹕ Unable to resolve superclass of Landroid/support/v4/app/FragmentTransitionCompat21$3; (1078)
02-20 04:45:51.180    1052-1052/xxx W/dalvikvm﹕ Link of class 'Landroid/support/v4/app/FragmentTransitionCompat21$3;' failed
02-20 04:45:51.990    1052-1052/xxx W/dalvikvm﹕ Unable to resolve superclass of Landroid/support/v4/media/VolumeProviderCompatApi21$1; (185)
02-20 04:45:51.990    1052-1052/xxx W/dalvikvm﹕ Link of class 'Landroid/support/v4/media/VolumeProviderCompatApi21$1;' failed
02-20 04:45:52.120    1052-1052/xxx W/dalvikvm﹕ Unable to resolve superclass of Landroid/support/v4/media/session/MediaControllerCompatApi21$CallbackProxy; (186)
02-20 04:45:52.120    1052-1052/xxxW/dalvikvm﹕ Link of class 'Landroid/support/v4/media/session/MediaControllerCompatApi21$CallbackProxy;' failed
02-20 04:45:52.170    1052-1052/xxx W/dalvikvm﹕ Unable to resolve superclass of Landroid/support/v4/media/session/MediaSessionCompatApi21$CallbackProxy; (190)
02-20 04:45:52.170    1052-1052/xxx W/dalvikvm﹕ Link of class 'Landroid/support/v4/media/session/MediaSessionCompatApi21$CallbackProxy;' failed
02-20 04:45:52.800    1052-1052/xxx I/dalvikvm﹕ Failed resolving Landroid/support/v4/view/ViewCompatApi21$1; interface 1124 'Landroid/view/View$OnApplyWindowInsetsListener;'
02-20 04:45:52.800    1052-1052/xxx W/dalvikvm﹕ Link of class 'Landroid/support/v4/view/ViewCompatApi21$1;' failed
02-20 04:45:53.540    1052-1052/xxx I/dalvikvm﹕ Failed resolving Landroid/support/v4/widget/DrawerLayoutCompatApi21$InsetsListener; interface 1124 'Landroid/view/View$OnApplyWindowInsetsListener;'
02-20 04:45:53.540    1052-1052/xxx W/dalvikvm﹕ Link of class 'Landroid/support/v4/widget/DrawerLayoutCompatApi21$InsetsListener;' failed
02-20 04:45:53.910    1052-1052/xxx W/dalvikvm﹕ Unable to resolve superclass of Lbutterknife/internal/ButterKnifeProcessor; (3572)
02-20 04:45:53.910    1052-1052/xxx W/dalvikvm﹕ Link of class 'Lbutterknife/internal/ButterKnifeProcessor;' failed
02-20 04:46:01.440    1052-1052/xxx I/dalvikvm﹕ Failed resolving Lretrofit/RxSupport$1; interface 4126 'Lrx/Observable$OnSubscribe;'
02-20 04:46:01.440    1052-1052/xxx W/dalvikvm﹕ Link of class 'Lretrofit/RxSupport$1;' failed

Any help would be very appreciated.

非常感谢您的帮助。

1 个解决方案

#1


0  

Are you using multidexing in your app to get around Android's 65K method limit?

你在应用程序中使用multidexing来绕过安卓的65K方法限制吗?

I had a similar problem to this, and I figured out that I was running up against the limitations of the multidex support library - specifically the LinearAlloc issue. There isn't really a good solution for that other than to try to rip out unused libs from your project, use ProGuard, or set your minSdkVersion to 21.

我有一个类似的问题,我发现我遇到了multidex支持库的局限性——特别是线性分配问题。除了试图从您的项目中删除未使用的libs,使用ProGuard,或者将minSdkVersion设置为21,这并不是一个好的解决方案。

Maybe this is not same issue that is causing your problem, but hopefully this helps anyone who ends up here.

也许这和你的问题不一样,但希望这能帮助到这里的人。

#1


0  

Are you using multidexing in your app to get around Android's 65K method limit?

你在应用程序中使用multidexing来绕过安卓的65K方法限制吗?

I had a similar problem to this, and I figured out that I was running up against the limitations of the multidex support library - specifically the LinearAlloc issue. There isn't really a good solution for that other than to try to rip out unused libs from your project, use ProGuard, or set your minSdkVersion to 21.

我有一个类似的问题,我发现我遇到了multidex支持库的局限性——特别是线性分配问题。除了试图从您的项目中删除未使用的libs,使用ProGuard,或者将minSdkVersion设置为21,这并不是一个好的解决方案。

Maybe this is not same issue that is causing your problem, but hopefully this helps anyone who ends up here.

也许这和你的问题不一样,但希望这能帮助到这里的人。