diff --git a/wrappers/java/proguard.mustache b/wrappers/java/proguard.mustache
index 497027309ee42f9ecd87ca92a64ac18740aa34f8..b04d8c5e3bee38041008c0279cbeb27b844dc77f 100644
--- a/wrappers/java/proguard.mustache
+++ b/wrappers/java/proguard.mustache
@@ -45,4 +45,6 @@
 # Protobuf classes
 -keep class com.google.protobuf.GeneratedMessageLite { *; }
 -keep class * extends com.google.protobuf.GeneratedMessageLite { *; }
--keep class com.android.server.os.LinphoneTombstoneProtos {*;}
\ No newline at end of file
+-keep class com.android.server.os.LinphoneTombstoneProtos {*;}
+# Following allows to build a release app even without protobuf dependency
+-dontwarn com.google.protobuf.**
\ No newline at end of file