Is there a recommended proguard-project.txt for android sdk

Not applicable

I have an Android app that uses push notifications. It works fine in debug (the debug apk works without error). When I create a release apk and run proguard I get errors in com.apigee.** (8 files) and com.google.android.gms.** (4 files) files. If I use '-keep' and '-don'twarn' on these files: e.g.

-keep class com.apigee.** {*;}

-dontwarn com.apigee.fasterxml.jackson.** etc

I still get an error 'Caused by: java.lang.NoSuchFieldError: com.a.a.a.c.z\'.

I've tried to isolate this error with -printmapping in proguard without success.

I think I am implementing a pretty standard push notification service. I was hoping that someone in the Apigee community had a 'standard' proguard-project.txt that overcame this issue.

Solved Solved
0 2 577
1 ACCEPTED SOLUTION

Not applicable

I have come back to this several times for a half day. Just now I seem to have found a solution.

I added

-keepclassmembers class com.apigee.**{

*** <fields>;}

to my proguard-rules.pro.

View solution in original post

2 REPLIES 2

@jwest1 can you help?

Not applicable

I have come back to this several times for a half day. Just now I seem to have found a solution.

I added

-keepclassmembers class com.apigee.**{

*** <fields>;}

to my proguard-rules.pro.