1

Recently, I made an account in play store.My App were working good, if debugged from eclipse but when I download the same uploaded app from play store it crashes with following error:

E/AndroidRuntime(13887): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.appcompat.R$styleable" on path: DexPathList[[zip file "/data/app/com.example.example-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]

EDIT: The problem were arising when application installed from APK.

Ajeet
  • 1,540
  • 1
  • 17
  • 30
  • What model device is crashing? – vgonisanz May 11 '15 at 06:45
  • possible duplicate of [NoClassDefFoundError: Failed resolution of: Landroid/support/v7/appcompat/R$styleable](http://stackoverflow.com/questions/25430551/noclassdeffounderror-failed-resolution-of-landroid-support-v7-appcompat-rstyl) – Ken Y-N May 11 '15 at 06:45
  • @Piperoman It is oneplus one but the same app is working on it if debugged from eclipse. – Ajeet May 11 '15 at 06:46

2 Answers2

1

It seem a common problem in some devices, based in: This answer you must try using:

keep class !android.support.v7.internal.view.menu.**,android.support.v7.** {*;}

instead:

-keep class android.support.v7.** {*;}

using proguard. More info in the link.

Community
  • 1
  • 1
vgonisanz
  • 11,831
  • 13
  • 78
  • 130
  • I will try your solution and let you inform if it works after uploading a new apk. Thanks – Ajeet May 11 '15 at 06:52
  • I don't understand how Proguard is related to this problem. We are talking about an APK that worked locally, but stopped working after being transformed (?) by Google Play, right? – cubuspl42 May 07 '19 at 07:13
  • The linked answer doesn't mention Google Play. – cubuspl42 May 07 '19 at 07:14
1

I was including appcombat v7 in wrong way. A correct way is given here.

Community
  • 1
  • 1
Ajeet
  • 1,540
  • 1
  • 17
  • 30
  • Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Ali Bdeir Nov 10 '16 at 18:19
  • The linked question/answer doesn't mention Google Play. Your apk worked in the first place, right? – cubuspl42 May 07 '19 at 07:15