ionic3 cordova-plugin-telerik-imagepicker 插件android平台闪退解决办法

 

ionic3 cordova-plugin-telerik-imagepicker 插件安装后,在魅族手机(android 5.1)闪退,用logcat查看日志信息发现报一下错误:

”Didn't find class "android.support.v4.graphics.drawable.DrawableWrapper“,网上查找错误原因,无意间发现cordova-android-support-gradle-release 页面有说明"ln some cases, you may want to specify a different version of the support libraries. For example, Telerik ImagePicker plugin v2.1.7 specifies v23 because it contains code that is incompatible with v24+",大意是说cordova-plugin-telerik-imagepicker 插件需指定 Android Support 库版本为v23。

解决办法:

安装cordova-android-support-gradle-release插件,通过参数ANDROID_SUPPORT_VERSION指定Android Suppport库版本23.+,重新build,问题解决

cordova plugin add cordova-android-support-gradle-release  --variable ANDROID_SUPPORT_VERSION=23.+

 

你可能感兴趣的:(ionic)