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! Go to Solution.
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.
@jwest1 can you help?
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.
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |