Proguard removing annotations in Android application
问题 I have included a project using gradle in my app: compile group: 'org.bytedeco', name: 'javacv', version: '0.11' Which builds fine. But whenever I run the app with proguard enabled, it apparently removes the @Platform annotation from the jars that get included then. I tried using the following based on http://proguard.sourceforge.net/manual/examples.html#annotations -keepattributes *Annotation* -keep @org.bytedeco.javacpp.annotation interface * { *; } I also tried the following based on http: