java - Android appCompat issue with samsung and wiko -
currently have little problem application, works fine on devices on samsung , wiko error : java.lang.noclassdeffounderror: android.support.v7.internal.view.menu.menubuilder
i saw answers on internet said add line below in proguard file, in case doesn't work
-keep class !android.support.v7.internal.view.menu.**, ** { *; }
my app compound of 2 modules(so have 2 proguard file), 1module main app , other library
here gradle file thr app module:
apply plugin: 'com.android.application' android { compilesdkversion 22 buildtoolsversion "21.1.2" defaultconfig { applicationid "com.refresh.quickeer" minsdkversion 16 targetsdkversion 22 versioncode 1 versionname "1.0" multidexenabled true } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } debug { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.android.support:cardview-v7:22.1.0' compile 'com.android.support:recyclerview-v7:22.+' compile 'com.android.support:palette-v7:21.0.0' compile 'com.xgc1986.android:parallaxpagertransformer:1.0.3' compile project(':library') }
have solution problem please ?
before encountering issue did not use proguard on app. resolved issue setting minifyenabled true
, using following proguard config
-dontshrink -keep class !android.support.v7.internal.view.menu.**,** {*;} -keepattributes ** -dontwarn **
i tested app on appthwack before , after fix verify worked.
Comments
Post a Comment