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

时间:2015-02-20 11:15:18

标签: android android-support-library retrofit butterknife

安装我的应用程序后,它只会在第一次正确运行,之后每次都会崩溃。所有必需的依赖项都包含在内并且是最新的。我已经尝试清理项目并使用不同版本的库和不同的设备重建它。

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

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

您是否在自己的应用中使用多索引来绕过Android的65K method limit

我遇到了类似的问题,我发现我遇到了limitations of the multidex support library - 尤其是LinearAlloc问题。除了尝试从项目中删除未使用的库,使用ProGuard或将minSdkVersion设置为21之外,还没有一个很好的解决方案。

也许这不是造成问题的同一问题,但希望这可以帮助任何到此为止的人。