我正在使用Sinch Library进行语音呼叫。
启用proguard时出现此错误
Warning:com.sinch.android.rtc.internal.client.fcm.InstanceIDTokenService: can't find referenced method 'android.content.ComponentName startService(android.content.Intent)' in program class com.sinch.android.rtc.internal.client.fcm.InstanceIDTokenService
这是我的proguard文件:
-keepclasseswithmembernames class * {
native <methods>;
}
-dontwarn org.apache.http.annotation.**
-keep class com.sinch.** { *; }
-keep interface com.sinch.** { *; }
-keep class org.webrtc.** { *; }
-keep class com.sinch.android.rtc.internal.client.fcm.** { *; }
-keep class com.google.android.gms.**{ *; }
-dontwarn com.google.android.gms.**
-dontwarn android.media.**